From c4ee55d6617a9c8e6bd7a5e66356a38ae211e8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 21 Mar 2023 14:00:04 +1100 Subject: [PATCH] nethack-qt: fix darwin build --- pkgs/games/nethack/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix index 08599cccb212..46e4dc9ca20b 100644 --- a/pkgs/games/nethack/default.nix +++ b/pkgs/games/nethack/default.nix @@ -85,6 +85,9 @@ in stdenv.mkDerivation rec { -i sys/unix/Makefile.* ''} sed -i -e '/rm -f $(MAKEDEFS)/d' sys/unix/Makefile.src + # Fix building on darwin where otherwise __has_attribute fails with an empty parameter + sed -e 's/define __warn_unused_result__ .*/define __warn_unused_result__ __unused__/' -i include/tradstdc.h + sed -e 's/define warn_unused_result .*/define warn_unused_result __unused__/' -i include/tradstdc.h ''; configurePhase = ''