mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
02d26fc77d
other kinds of configurations (like the installation CD). svn path=/nixos/branches/modular-nixos/; revision=15864
3 lines
91 B
Nix
3 lines
91 B
Nix
name: default:
|
|
let value = builtins.getEnv name; in
|
|
if value == "" then default else value
|