summary refs log blame commit diff
path: root/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh
blob: 35cea773f98b5d2a81df1a34b3575294cf91ff82 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                                         
                                     
                                                    

                                

 
                                                  
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
    NIX_CFLAGS_COMPILE+=" $flag"
  fi
}

addEnvHooks "$hostOffset" noDeprecatedDeclarations