Created
May 7, 2023 04:27
-
-
Save PuercoPop/ad8bd32593576ed77aa4a153a3ee9cc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
mach-nix.url = "github:davhau/mach-nix"; | |
}; | |
outputs = { self, nixpkgs, mach-nix }: | |
let | |
pkgs = import nixpkgs { inherit x86_64-linux; }; | |
mach = mach-nix.lib.x86_64-linux; | |
pythonVersion = "python312"; | |
pythonEnv = mach.mkPython { | |
python = pythonVersion; | |
requirements = builtins.readFile ./requirements.txt; | |
}; | |
in | |
{ | |
devShells.x86_64-linux.default = pkgs.mkShellNoCC | |
{ | |
packages = [ pythonEnv ]; | |
shellHook = '' | |
export PYTHONPATH="${pythonEnv}/bin/python" | |
''; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment