warzone2100: set platforms to all, mark darwin as broken

It's supposed to work on darwin too, but the cmake file for darwin tries
to download stuff
This commit is contained in:
Francesco Gazzetta
2021-12-04 13:12:03 +01:00
parent 716815ce2a
commit d69ee7c409
+6 -2
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;
};
}