buildEnv: fix passthru merging

Merge derivationArgs.passthru into the passthru chain so that passthru attributes passed via derivationArgs are not silently dropped.
This commit is contained in:
Philip Taron
2026-03-19 13:17:19 -07:00
parent 3b82db1881
commit 7269072659
+5
View File
@@ -121,6 +121,10 @@ lib.makeOverridable (
(lib.remove null)
];
in
assert
args ? name
|| (args ? pname && args ? version)
|| throw "buildEnv: expects arguments 'pname' and 'version', or 'name'";
compatArgs
// derivationArgs
// {
@@ -158,6 +162,7 @@ lib.makeOverridable (
# The `paths` attribute is referenced and overridden from passthru
inherit paths;
}
// derivationArgs.passthru or { }
// passthru;
};