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