about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2021-11-30 20:27:15 +0100
committerFrancesco Gazzetta <fgaz@fgaz.me>2021-12-04 13:12:03 +0100
commitd69ee7c4090834fb49c8022e925e3ba0d88994ed (patch)
treeb44e06c086b46bd15eb5bad3926c6e77b4a50ba7 /pkgs/games
parent716815ce2a1fcb135843c7441648a59d62fb6eb6 (diff)
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
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/warzone2100/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/games/warzone2100/default.nix b/pkgs/games/warzone2100/default.nix
index 96d2e303bcebe..1a03252ba0d93 100644
--- a/pkgs/games/warzone2100/default.nix
+++ b/pkgs/games/warzone2100/default.nix
@@ -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;
   };
 }