3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/lib/from-env.nix
Eelco Dolstra 02d26fc77d * Make eval-config.nix a bit more general to make it easier to build
other kinds of configurations (like the installation CD).

svn path=/nixos/branches/modular-nixos/; revision=15864
2009-06-05 13:19:39 +00:00

4 lines
91 B
Nix

name: default:
let value = builtins.getEnv name; in
if value == "" then default else value