mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] wol: fix Darwin build with gnu17 (#538255)
This commit is contained in:
commit
76c7ce9867
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
./macos-10_7-getline.patch
|
||||
];
|
||||
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
# wol's bundled gettext sources do not compile as gnu23 with clang.
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu17";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
perl # for pod2man in order to get a manpage
|
||||
autoreconfHook # for the patch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue