tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
make-derivation.nix: Move into let binding
Robert Hensing
2 years ago
ab56d3ac
9336998b
+7
-4
1 changed file
expand all
collapse all
unified
split
pkgs
stdenv
generic
make-derivation.nix
+7
-4
pkgs/stdenv/generic/make-derivation.nix
···
40
40
unique
41
41
;
42
42
43
43
+
mkDerivation =
44
44
+
fnOrAttrs:
45
45
+
if builtins.isFunction fnOrAttrs
46
46
+
then makeDerivationExtensible fnOrAttrs
47
47
+
else makeDerivationExtensibleConst fnOrAttrs;
48
48
+
43
49
checkMeta = import ./check-meta.nix {
44
50
inherit lib config;
45
51
# Nix itself uses the `system` field of a derivation to decide where
···
603
609
(derivation (derivationArg // optionalAttrs envIsExportable checkedEnv));
604
610
605
611
in
606
606
-
fnOrAttrs:
607
607
-
if builtins.isFunction fnOrAttrs
608
608
-
then makeDerivationExtensible fnOrAttrs
609
609
-
else makeDerivationExtensibleConst fnOrAttrs
612
612
+
mkDerivation