diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-17 09:12:39 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-17 09:41:02 +0200 |
commit | 10d1865f5f443ddd57bb408a99f0afd74436e963 (patch) | |
tree | 6112e3a137d259606e8c435ffb4b72add0e410d6 /corepkgs | |
parent | 5080d4e7b2525d1656282c65a217a22ff8381df3 (diff) |
Remove corepkgs/derivation.nix
Diffstat (limited to 'corepkgs')
-rw-r--r-- | corepkgs/derivation.nix | 27 | ||||
-rw-r--r-- | corepkgs/local.mk | 1 |
2 files changed, 0 insertions, 28 deletions
diff --git a/corepkgs/derivation.nix b/corepkgs/derivation.nix deleted file mode 100644 index c0fbe8082..000000000 --- a/corepkgs/derivation.nix +++ /dev/null @@ -1,27 +0,0 @@ -/* This is the implementation of the ‘derivation’ builtin function. - It's actually a wrapper around the ‘derivationStrict’ primop. */ - -drvAttrs @ { outputs ? [ "out" ], ... }: - -let - - strict = derivationStrict drvAttrs; - - commonAttrs = drvAttrs // (builtins.listToAttrs outputsList) // - { all = map (x: x.value) outputsList; - inherit drvAttrs; - }; - - outputToAttrListElement = outputName: - { name = outputName; - value = commonAttrs // { - outPath = builtins.getAttr outputName strict; - drvPath = strict.drvPath; - type = "derivation"; - inherit outputName; - }; - }; - - outputsList = map outputToAttrListElement outputs; - -in (builtins.head outputsList).value diff --git a/corepkgs/local.mk b/corepkgs/local.mk index 2c72d3a31..57f6d53a7 100644 --- a/corepkgs/local.mk +++ b/corepkgs/local.mk @@ -1,6 +1,5 @@ corepkgs_FILES = \ unpack-channel.nix \ - derivation.nix \ fetchurl.nix $(foreach file,config.nix $(corepkgs_FILES),$(eval $(call install-data-in,$(d)/$(file),$(datadir)/nix/corepkgs))) |