1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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-11-30 20:27:15 +01:00
parent 716815ce2a
commit d69ee7c409

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