summary refs log tree commit diff
path: root/tests/lang/eval-okay-getenv.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-24 17:48:41 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-24 17:48:41 +0000
commite47e0c2dbe808f299eb912da94640b95954703f7 (patch)
treefc95213e79072e3f4d7709529a418a01d1a02d2a /tests/lang/eval-okay-getenv.nix
parentdf8873e14ad071812e27f38b69783f04dbae5f44 (diff)
downloadguix-e47e0c2dbe808f299eb912da94640b95954703f7.tar.gz
* Builtin function `getEnv' for getting environment variables.
Diffstat (limited to 'tests/lang/eval-okay-getenv.nix')
-rw-r--r--tests/lang/eval-okay-getenv.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-getenv.nix b/tests/lang/eval-okay-getenv.nix
new file mode 100644
index 0000000000..4cfec5f553
--- /dev/null
+++ b/tests/lang/eval-okay-getenv.nix
@@ -0,0 +1 @@
+builtins.getEnv "TEST_VAR" + (if builtins.getEnv "NO_SUCH_VAR" == "" then "bar" else "bla")