make-sandboxed: fix to preserve the specified output, for packages like dig
This commit is contained in:
@@ -500,12 +500,16 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
packageWrapped = sandboxedBy."${wrapperType}";
|
packageWrapped = sandboxedBy."${wrapperType}";
|
||||||
in
|
packageWithMeta = fixupMetaAndPassthru pkgName packageWrapped (passthru // {
|
||||||
fixupMetaAndPassthru pkgName packageWrapped (passthru // {
|
|
||||||
# allow the user to build this package, but sandboxed in a different manner.
|
# allow the user to build this package, but sandboxed in a different manner.
|
||||||
# e.g. `<pkg>.sandboxedBy.inplace`.
|
# e.g. `<pkg>.sandboxedBy.inplace`.
|
||||||
# e.g. `<pkg>.sandboxedBy.wrappedDerivation.sandboxedNonBin`
|
# e.g. `<pkg>.sandboxedBy.wrappedDerivation.sandboxedNonBin`
|
||||||
inherit sandboxedBy;
|
inherit sandboxedBy;
|
||||||
})
|
});
|
||||||
|
in if package.outputSpecified or false then
|
||||||
|
# packages like `dig` are actually aliases to `bind.dnsutils`, so preserve that
|
||||||
|
packageWithMeta."${package.outputName}"
|
||||||
|
else
|
||||||
|
packageWithMeta
|
||||||
;
|
;
|
||||||
in make-sandboxed
|
in make-sandboxed
|
||||||
|
Reference in New Issue
Block a user