mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-06 09:12:35 +03:00
5 lines
143 B
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
|