nixpkgs/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh
2015-10-29 13:56:02 -07:00

10 lines
322 B
Bash

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
}
envHooks+=(noDeprecatedDeclarations)