aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-okay-getenv.nix
diff options
context:
space:
mode:
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 000000000..4cfec5f55
--- /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")