mirror of
https://github.com/vale981/nix-development-configs
synced 2025-03-04 09:21:39 -05:00
Update to pythonflake-mach-nix
This commit is contained in:
parent
35b90044df
commit
8eed91f4cd
1 changed files with 17 additions and 3 deletions
|
@ -19,8 +19,19 @@
|
|||
|
||||
requirements = ''
|
||||
plumbum
|
||||
dhall
|
||||
'';
|
||||
|
||||
source_preferences = {
|
||||
_default = "nixpkgs,wheel,sdist";
|
||||
dhall = "wheel";
|
||||
};
|
||||
|
||||
env = machNix.mkPython {
|
||||
inherit requirements;
|
||||
packagesExtra = [ pkgs.openssl ];
|
||||
};
|
||||
|
||||
app = machNix.buildPythonApplication {
|
||||
pname = packageName;
|
||||
version = packageVersion;
|
||||
|
@ -31,11 +42,14 @@
|
|||
in {
|
||||
packages.${packageName} = app;
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = [ env ];
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH=${pkgs.openssl.out}/lib
|
||||
'';
|
||||
};
|
||||
defaultPackage = self.packages.${system}.${packageName};
|
||||
apps.${system}.default = app;
|
||||
|
||||
devShell = machNix.mkPythonShell {
|
||||
inherit requirements;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue