Merge pull request #148051 from fgaz/warzone2100/darwin

This commit is contained in:
Sandro 2021-12-05 01:40:43 +01:00 committed by GitHub
commit 633c2d3866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,7 @@ stdenv.mkDerivation rec {
freetype
harfbuzz
sqlite
] ++ lib.optionals (!stdenv.isDarwin) [
vulkan-headers
vulkan-loader
];
@ -93,7 +94,7 @@ stdenv.mkDerivation rec {
#
# Alternatively, we could have set CMAKE_INSTALL_BINDIR to "bin".
"-DCMAKE_INSTALL_DATAROOTDIR=${placeholder "out"}/share"
];
] ++ lib.optional stdenv.isDarwin "-P../configure_mac.cmake";
postInstall = lib.optionalString withVideos ''
cp ${sequences_src} $out/share/warzone2100/sequences.wz
@ -115,6 +116,9 @@ stdenv.mkDerivation rec {
homepage = "http://wz2100.net";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ astsmtl fgaz ];
platforms = platforms.linux;
platforms = platforms.all;
# configure_mac.cmake tries to download stuff
# https://github.com/Warzone2100/warzone2100/blob/master/macosx/README.md
broken = stdenv.isDarwin;
};
}