mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
d1e87dfc86
- system.copySystemConfiguration (requested by Ludovic Courtès) - system.extraSystemBuilderCmds svn path=/nixos/trunk/; revision=21406
4 lines
143 B
Nix
4 lines
143 B
Nix
# TODO: remove this file. There is lib.maybeEnv now
|
|
name: default:
|
|
let value = builtins.getEnv name; in
|
|
if value == "" then default else value
|