Merge pull request #255565 from felixalbrigtsen/patch-thc-hydra-darwin

thc-hydra: patch to build on darwin
This commit is contained in:
Weijia Wang 2023-09-19 08:29:04 +02:00 committed by GitHub
commit 4c34c942d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
};
}