mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-22 22:50:32 +00:00
9 lines
253 B
Nix
9 lines
253 B
Nix
|
name: default: let
|
||
|
envOverride = builtins.getEnv name;
|
||
|
logEnvOverride = value:
|
||
|
builtins.trace "getEnvWithDefault ${name} (default: ${toString default}): ${value}" value;
|
||
|
in
|
||
|
if envOverride != ""
|
||
|
then logEnvOverride envOverride
|
||
|
else default
|