mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 14:31:55 +03:00
feat: output pyEnv for pip derivations
In case you're building a python environment instead of a package, this output is very handy.
This commit is contained in:
parent
0d3146539a
commit
56308a22ef
@ -165,13 +165,14 @@ in {
|
||||
l.attrValues (l.mapAttrs (name: _: cfg.drvs.${name}.public.out) rootDeps);
|
||||
};
|
||||
|
||||
public.devShell = let
|
||||
public.pyEnv = let
|
||||
pyEnv' = config.deps.python.withPackages (ps: config.mkDerivation.propagatedBuildInputs);
|
||||
pyEnv = pyEnv'.override (old: {
|
||||
in
|
||||
pyEnv'.override (old: {
|
||||
# namespaced packages are triggering a collision error, but this can be
|
||||
# safely ignored. They are still set up correctly and can be imported.
|
||||
ignoreCollisions = true;
|
||||
});
|
||||
in
|
||||
pyEnv.env;
|
||||
|
||||
public.devShell = config.public.pyEnv.env;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user