about summary refs log tree commit diff
path: root/corepkgs/config.nix.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-01-03T09·19+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-01-03T09·19+0000
commit9b7df1ef007d9209b17f7aa40a03be0250ea30d0 (patch)
tree8ac5e637bbce43b13e12fcdd934146a7b851fb99 /corepkgs/config.nix.in
parent39d45a6b090b5105423b22b8ef39c2a4a000a4a1 (diff)
* Forgot to add.
Diffstat (limited to 'corepkgs/config.nix.in')
-rw-r--r--corepkgs/config.nix.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/corepkgs/config.nix.in b/corepkgs/config.nix.in
new file mode 100644
index 000000000000..b324d732a1a2
--- /dev/null
+++ b/corepkgs/config.nix.in
@@ -0,0 +1,13 @@
+let
+  fromEnv = var: def:
+    let val = builtins.getEnv var; in
+    if val != "" then val else def;
+in {
+  perl = "@perl@";
+  shell = "@shell@";
+  coreutils = "@coreutils@";
+  bzip2 = fromEnv "NIX_BZIP2" "@bzip2@";
+  tar = "@tar@";
+  tr = "@tr@";
+  nixBinDir = fromEnv "NIX_BIN_DIR" "@bindir@";
+}