about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2024-06-22 10:27:07 +0100
committerEmily <vcs@emily.moe>2024-06-22 18:06:51 +0100
commit760eabadbbb40c2b4df3d27b24c6c431524d3408 (patch)
tree12a7d7890fd6fdf61f85cdbc902dfaecd988edce
parentdb82f16668c666fcdc6218d593d20256bc294387 (diff)
mar1d: add patch for Darwin
-rw-r--r--pkgs/games/mar1d/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/games/mar1d/default.nix b/pkgs/games/mar1d/default.nix
index f5ef27766926b..0bd6026e32d68 100644
--- a/pkgs/games/mar1d/default.nix
+++ b/pkgs/games/mar1d/default.nix
@@ -8,6 +8,7 @@
 , ninja
 , pkg-config
 , fetchFromGitHub
+, fetchpatch
 }:
 
 stdenv.mkDerivation rec {
@@ -30,6 +31,15 @@ stdenv.mkDerivation rec {
     libGLU
   ];
 
+  patches = [
+    # Fix the build on Darwin.
+    # https://github.com/Radvendii/MAR1D/pull/4
+    (fetchpatch {
+      url = "https://github.com/Radvendii/MAR1D/commit/baf3269e90eca69f154a43c4c1ef14677a6300fd.patch";
+      hash = "sha256-ybdLA2sO8e0J7w4roSdMWn72OkttD3y+cJ3ScuGiHCI=";
+    })
+  ];
+
   meta = with lib; {
     description = "First person Super Mario Bros";
     mainProgram = "MAR1D";