mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
11 lines
322 B
Bash
11 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)
|