2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-10 06:55:10 +00:00
nixpkgs/nixos/lib/from-env.nix

5 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