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:
Jairo Llopis 2023-09-19 13:17:09 +01:00 committed by DavHau
parent 0d3146539a
commit 56308a22ef

View File

@ -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;
}