diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-05 13:33:35 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-06-05 13:33:35 +0200 |
commit | 1b00adbad171384b99ad842684d4f5e58e6657a2 (patch) | |
tree | 9be21dee4d2cca2b551c29331c941da15b45f99b /pkgs/stdenv/generic | |
parent | 2db97cb047fb7c6e5193869bf9a511241bf52523 (diff) |
pkgs/make-derivation.nix: Refactor, introduce let binding
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r-- | pkgs/stdenv/generic/make-derivation.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index 395c1586a26b4..075012d6e0fb4 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -70,9 +70,7 @@ let makeDerivationExtensible mkDerivationSimple (self: attrs // f self attrs)) attrs; -in - -makeOverlayable (overrideAttrs: + mkDerivationSimple = overrideAttrs: # `mkDerivation` wraps the builtin `derivation` function to @@ -485,6 +483,7 @@ lib.extendDerivation # should be made available to Nix expressions using the # derivation (e.g., in assertions). passthru) - (derivation derivationArg) + (derivation derivationArg); -) +in + makeOverlayable mkDerivationSimple |