nixpkgs-overrides: map env field correctly

Now that mkDerivation also has an `env` flag, we need to make sure to not forward this to mkDerivation, as we have our own env option.
This commit is contained in:
DavHau 2023-12-09 17:50:14 +07:00 committed by mergify[bot]
parent 652ff77437
commit 916bca75a1

View File

@ -38,16 +38,18 @@
extracted;
extractedEnv =
l.filterAttrs
(
name: _:
! (
extractedMkDerivation
? ${name}
|| extractedBuildPythonPackage ? ${name}
)
)
extracted;
(l.filterAttrs
(
name: _:
! (
extractedMkDerivation
? ${name}
|| extractedBuildPythonPackage ? ${name}
)
&& name != "env"
)
extracted)
// extracted.env or {};
in {
imports = [
./interface.nix