about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-02-22 13:52:38 +0100
committerGitHub <noreply@github.com>2023-02-22 13:52:38 +0100
commitc0745887c4fd68fa314635b99b42ca22fd215723 (patch)
tree016efb4d2ba3be39358e5c57b67709a52d3d8f3e
parentf40b31e2595c247bc04fb89d77f58d27c6345a7d (diff)
parent2343d23c4494505a3b2d53df4a255c6960b5ddd2 (diff)
Merge pull request #217677 from ncfavier/unfuck
dwarf-fortress: unfuck unfuck
-rw-r--r--pkgs/games/dwarf-fortress/unfuck.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/dwarf-fortress/unfuck.nix b/pkgs/games/dwarf-fortress/unfuck.nix
index 27b54667f0b9a..9b7de93ecd7d5 100644
--- a/pkgs/games/dwarf-fortress/unfuck.nix
+++ b/pkgs/games/dwarf-fortress/unfuck.nix
@@ -82,6 +82,11 @@ stdenv.mkDerivation {
     sha256 = release.sha256;
   };
 
+  postPatch = ''
+    # https://github.com/svenstaro/dwarf_fortress_unfuck/pull/27
+    substituteInPlace CMakeLists.txt --replace \''${GLEW_LIBRARIES} GLEW::glew
+  '';
+
   cmakeFlags = [
     "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
     "-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"