aboutsummaryrefslogtreecommitdiff
path: root/corepkgs
diff options
context:
space:
mode:
authorKevin Quick <kquick@galois.com>2020-09-29 08:32:06 -0700
committerKevin Quick <kquick@galois.com>2020-09-29 08:32:06 -0700
commit66c3959e8ca73ff59faacc319a47b6f93a66be64 (patch)
tree076892d5ef8b3d5d81ead006351bc460e7a08b09 /corepkgs
parent5a35cc29bffc88b88f883dfcdd1bb251eab53ecd (diff)
parente2d398c200023a0d1e0054c536e7f6438bd2b139 (diff)
Merge branch 'master' into access-tokens
Diffstat (limited to 'corepkgs')
-rw-r--r--corepkgs/config.nix.in13
-rw-r--r--corepkgs/derivation.nix27
-rw-r--r--corepkgs/local.mk6
-rw-r--r--corepkgs/unpack-channel.nix12
4 files changed, 1 insertions, 57 deletions
diff --git a/corepkgs/config.nix.in b/corepkgs/config.nix.in
deleted file mode 100644
index cb9945944..000000000
--- a/corepkgs/config.nix.in
+++ /dev/null
@@ -1,13 +0,0 @@
-# FIXME: remove this file?
-let
- fromEnv = var: def:
- let val = builtins.getEnv var; in
- if val != "" then val else def;
-in rec {
- nixBinDir = fromEnv "NIX_BIN_DIR" "@bindir@";
- nixPrefix = "@prefix@";
- nixLibexecDir = fromEnv "NIX_LIBEXEC_DIR" "@libexecdir@";
- nixLocalstateDir = "@localstatedir@";
- nixSysconfDir = "@sysconfdir@";
- nixStoreDir = fromEnv "NIX_STORE_DIR" "@storedir@";
-}
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..0bc91cfab 100644
--- a/corepkgs/local.mk
+++ b/corepkgs/local.mk
@@ -1,8 +1,4 @@
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)))
-
-template-files += $(d)/config.nix
+$(foreach file,$(corepkgs_FILES),$(eval $(call install-data-in,$(d)/$(file),$(datadir)/nix/corepkgs)))
diff --git a/corepkgs/unpack-channel.nix b/corepkgs/unpack-channel.nix
deleted file mode 100644
index 10515bc8b..000000000
--- a/corepkgs/unpack-channel.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{ name, channelName, src }:
-
-derivation {
- builder = "builtin:unpack-channel";
-
- system = "builtin";
-
- inherit name channelName src;
-
- # No point in doing this remotely.
- preferLocalBuild = true;
-}