thc-hydra: patch to build on darwin

This commit is contained in:
Felix Albrigtsen 2023-09-17 02:26:04 +02:00
parent 79b41ea7fa
commit 113b904e4e

View File

@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
--replace "-lcurses" "-lncurses"
'';
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-undef-prefix";
nativeBuildInputs = lib.optionals withGUI [ pkg-config makeWrapper ];
buildInputs = [
@ -45,6 +47,5 @@ stdenv.mkDerivation rec {
license = licenses.agpl3Plus;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
badPlatforms = platforms.darwin; # fails to build since v9.5
};
}