about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh
blob: ed9bdbd912db14b87c71207f4b58b868050971f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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