Add devShells

This commit is contained in:
Las Safin 2021-08-31 14:10:13 +00:00
parent b5b4f0a633
commit e2475c8332
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
1 changed files with 8 additions and 0 deletions

View File

@ -70,6 +70,14 @@
defaultPackage = forAllSystems (system: self.packages.${system}.unicorn);
devShells = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
envFor = comp: (pkgs.python2.buildEnv.override {
extraLibs = [ pkgs.${"coriolis-${comp}"} ];
}).env;
in builtins.catAttrs (builtins.map (comp: { ${comp} = envFor comp; }) pythonComponents)
);
devShell = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};