aboutsummaryrefslogtreecommitdiff
path: root/libs.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-30 00:40:08 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-30 00:40:08 +0100
commit6cd8d6ce21e3efeda631037851653c04ad64e41c (patch)
tree43fb8054ed293ce5d643d71f11def5e9c8e9a5d9 /libs.nix
parent02bf0d911c2f7b100e22f9d9fd0b1b6b39274293 (diff)
downloadNix-6cd8d6ce21e3efeda631037851653c04ad64e41c.tar.gz
Nix-6cd8d6ce21e3efeda631037851653c04ad64e41c.tar.zst
Nix-6cd8d6ce21e3efeda631037851653c04ad64e41c.zip
Check environment variables at build time
Diffstat (limited to 'libs.nix')
-rw-r--r--libs.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs.nix b/libs.nix
index da13a03..cef8586 100644
--- a/libs.nix
+++ b/libs.nix
@@ -26,4 +26,6 @@ in
26 name = "${json.meta.name}-${version}"; 26 name = "${json.meta.name}-${version}";
27 src = fetchgit json.git; 27 src = fetchgit json.git;
28 }; 28 };
29
30 checkEnv = var: builtins.stringLength (builtins.getEnv var) > 0;
29} 31}