mirror of
https://github.com/NixOS/nixpkgs
synced 2024-10-19 03:47:13 -04:00
4 lines
91 B
Nix
4 lines
91 B
Nix
|
name: default:
|
||
|
let value = builtins.getEnv name; in
|
||
|
if value == "" then default else value
|