make-derivation.nix: Move into let binding
This commit is contained in:
parent
9336998b51
commit
ab56d3ac71
|
@ -40,6 +40,12 @@ let
|
||||||
unique
|
unique
|
||||||
;
|
;
|
||||||
|
|
||||||
|
mkDerivation =
|
||||||
|
fnOrAttrs:
|
||||||
|
if builtins.isFunction fnOrAttrs
|
||||||
|
then makeDerivationExtensible fnOrAttrs
|
||||||
|
else makeDerivationExtensibleConst fnOrAttrs;
|
||||||
|
|
||||||
checkMeta = import ./check-meta.nix {
|
checkMeta = import ./check-meta.nix {
|
||||||
inherit lib config;
|
inherit lib config;
|
||||||
# Nix itself uses the `system` field of a derivation to decide where
|
# Nix itself uses the `system` field of a derivation to decide where
|
||||||
|
@ -603,7 +609,4 @@ extendDerivation
|
||||||
(derivation (derivationArg // optionalAttrs envIsExportable checkedEnv));
|
(derivation (derivationArg // optionalAttrs envIsExportable checkedEnv));
|
||||||
|
|
||||||
in
|
in
|
||||||
fnOrAttrs:
|
mkDerivation
|
||||||
if builtins.isFunction fnOrAttrs
|
|
||||||
then makeDerivationExtensible fnOrAttrs
|
|
||||||
else makeDerivationExtensibleConst fnOrAttrs
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user