about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorYestin L. Harrison <yestin@ylh.io>2022-07-30 07:56:32 -0700
committerYestin L. Harrison <yestin@ylh.io>2022-08-03 13:58:54 -0700
commit6237fcac982fc233bd8438863c1a7d121a548188 (patch)
treeec142e5ea6fd79699f32c755d64f99fb5d240784 /pkgs/games
parent62af94c2ce5b43e4d56d3817f801cb87807b3660 (diff)
vkquake: support darwin
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/quakespasm/vulkan.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/games/quakespasm/vulkan.nix b/pkgs/games/quakespasm/vulkan.nix
index a6aadef7a576c..eedab296ce934 100644
--- a/pkgs/games/quakespasm/vulkan.nix
+++ b/pkgs/games/quakespasm/vulkan.nix
@@ -1,4 +1,6 @@
-{ lib, stdenv, fetchFromGitHub, makeWrapper, SDL2, gzip, libvorbis, libmad, vulkan-headers, vulkan-loader }:
+{ lib, stdenv, fetchFromGitHub, makeWrapper
+, SDL2, gzip, libvorbis, libmad, vulkan-headers, vulkan-loader, moltenvk
+}:
 
 stdenv.mkDerivation rec {
   pname = "vkquake";
@@ -24,7 +26,7 @@ stdenv.mkDerivation rec {
     libvorbis
     libmad
     vulkan-loader
-  ];
+  ] ++ lib.optional stdenv.isDarwin moltenvk;
 
   buildFlags = [ "DO_USERDIRS=1" ];
 
@@ -53,7 +55,7 @@ stdenv.mkDerivation rec {
       specialization constants, CPU/GPU parallelism and memory pooling.
     '';
 
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ ];
+    platforms = with platforms; linux ++ darwin;
+    maintainers = with maintainers; [ ylh ];
   };
 }