mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
reduce security setup hook duplication
This commit is contained in:
parent
949c4017b5
commit
ce4f1098ca
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
noDeprecatedDeclarations() {
|
||||
# Security.framework has about 2000 deprecated constants, all of which the user will be
|
||||
# warned about at compilation time
|
||||
NIX_CFLAGS_COMPILE+=" -Wno-deprecated-declarations"
|
||||
flag="-Wno-deprecated-declarations"
|
||||
if [[ "$NIX_CFLAGS_COMPILE" != *$flag* ]]; then
|
||||
NIX_CFLAGS_COMPILE+=" $flag"
|
||||
fi
|
||||
}
|
||||
|
||||
envHooks+=(noDeprecatedDeclarations)
|
||||
|
|
Loading…
Reference in a new issue