Skip to content

Commit

Permalink
minetest: 5.9.1 -> 5.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
06kellyjac committed Nov 12, 2024
1 parent 72382d7 commit 4c6c098
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions pkgs/games/minetest/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "minetest";
version = "5.9.1";
version = "5.10.0";

src = fetchFromGitHub {
owner = "minetest";
repo = "minetest";
rev = finalAttrs.version;
hash = "sha256-0WTDhFt7GDzN4AK8U17iLkjeSMK+gOWZRq46HBTeO3w=";
hash = "sha256-sumwm8mJghpSriVflMQSHQM4BTmAhfI/Wl/FroLTVts=";
};

cmakeFlags = [
Expand Down Expand Up @@ -125,14 +125,9 @@ stdenv.mkDerivation (finalAttrs: {
prometheus-cpp
];

postPatch =
''
substituteInPlace src/filesys.cpp \
--replace-fail "/bin/rm" "${coreutils}/bin/rm"
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
sed -i '/pagezero_size/d;/fixup_bundle/d' src/CMakeLists.txt
'';
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
sed -i '/pagezero_size/d;/fixup_bundle/d' src/CMakeLists.txt
'';

postInstall =
lib.optionalString stdenv.hostPlatform.isLinux ''
Expand Down

0 comments on commit 4c6c098

Please sign in to comment.