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