mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
19 lines
544 B
Nix
19 lines
544 B
Nix
{
|
|
description = "Python pip flake";
|
|
|
|
inputs.mach-nix.url = "github:mach-nix/3.5.0";
|
|
|
|
outputs = { self, nixpkgs, mach-nix }@inp:
|
|
let
|
|
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
forAllSystems = f:
|
|
nixpkgs.lib.genAttrs supportedSystems
|
|
(system: f system (import nixpkgs { inherit system; }));
|
|
in {
|
|
devShell = forAllSystems (system: pkgs:
|
|
mach-nix.lib."${system}".mkPythonShell {
|
|
requirements = builtins.readFile ./requirements.txt;
|
|
});
|
|
};
|
|
}
|