mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
d5c1ecc104
To help with #15595 changes, refactoring is required. In this PR we switch from config to env vars. Doing some cleanup meanwhile.
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
|