diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh')
-rw-r--r-- | nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh b/nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh index ed9bdbd912db..35cea773f98b 100644 --- a/nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh +++ b/nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh @@ -2,7 +2,7 @@ noDeprecatedDeclarations() { # Security.framework has about 2000 deprecated constants, all of which the user will be # warned about at compilation time flag="-Wno-deprecated-declarations" - if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then + if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then NIX_CFLAGS_COMPILE+=" $flag" fi } |