summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-01-03 09:19:40 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-01-03 09:19:40 +0000
commit9b7df1ef007d9209b17f7aa40a03be0250ea30d0 (patch)
tree8ac5e637bbce43b13e12fcdd934146a7b851fb99 /corepkgs
parent39d45a6b090b5105423b22b8ef39c2a4a000a4a1 (diff)
downloadguix-9b7df1ef007d9209b17f7aa40a03be0250ea30d0.tar.gz
* Forgot to add.
Diffstat (limited to 'corepkgs')
-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 0000000000..b324d732a1
--- /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@";
+}