Fix devShell

This commit is contained in:
Las Safin 2021-09-03 10:12:38 +00:00
parent 4f266c04eb
commit 5c7b2fdc28
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
1 changed files with 3 additions and 9 deletions

View File

@ -88,21 +88,15 @@
defaultPackage = forAllSystems (system: self.packages.${system}.unicorn);
devShells = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
envFor = comp: (pkgs.python2.buildEnv.override {
extraLibs = [ pkgs.${"coriolis-${comp}"} ];
});
in builtins.catAttrs (builtins.map (comp: { ${comp} = envFor comp; }) pythonComponents)
);
devShell = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
env = pkgs.python2.buildEnv.override {
extraLibs = builtins.map (x: pkgs.${"coriolis-${x}"}) pythonComponents;
};
in env.env
in pkgs.mkShell {
buildInputs = [ env ];
}
);
#hydraJobs.coriolis = self.defaultPackage;