make-derivation.nix: Float out unsafeDerivationToUntrackedOutpath
This commit is contained in:
parent
0ab7b23637
commit
ba463e70e3
1 changed files with 7 additions and 7 deletions
|
@ -133,6 +133,13 @@ let
|
||||||
"sandboxProfile" "propagatedSandboxProfile"
|
"sandboxProfile" "propagatedSandboxProfile"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Turn a derivation into its outPath without a string context attached.
|
||||||
|
# See the comment at the usage site.
|
||||||
|
unsafeDerivationToUntrackedOutpath = drv:
|
||||||
|
if isDerivation drv
|
||||||
|
then builtins.unsafeDiscardStringContext drv.outPath
|
||||||
|
else drv;
|
||||||
|
|
||||||
makeDerivationArgument =
|
makeDerivationArgument =
|
||||||
|
|
||||||
|
|
||||||
|
@ -242,13 +249,6 @@ let
|
||||||
separateDebugInfo' = separateDebugInfo && stdenv.hostPlatform.isLinux;
|
separateDebugInfo' = separateDebugInfo && stdenv.hostPlatform.isLinux;
|
||||||
outputs' = outputs ++ optional separateDebugInfo' "debug";
|
outputs' = outputs ++ optional separateDebugInfo' "debug";
|
||||||
|
|
||||||
# Turn a derivation into its outPath without a string context attached.
|
|
||||||
# See the comment at the usage site.
|
|
||||||
unsafeDerivationToUntrackedOutpath = drv:
|
|
||||||
if isDerivation drv
|
|
||||||
then builtins.unsafeDiscardStringContext drv.outPath
|
|
||||||
else drv;
|
|
||||||
|
|
||||||
noNonNativeDeps = builtins.length (depsBuildTarget ++ depsBuildTargetPropagated
|
noNonNativeDeps = builtins.length (depsBuildTarget ++ depsBuildTargetPropagated
|
||||||
++ depsHostHost ++ depsHostHostPropagated
|
++ depsHostHost ++ depsHostHostPropagated
|
||||||
++ buildInputs ++ propagatedBuildInputs
|
++ buildInputs ++ propagatedBuildInputs
|
||||||
|
|
Loading…
Reference in a new issue