forked from mirrors/nixpkgs
minetest: fix build on darwin
This commit is contained in:
parent
f0e9e476bd
commit
50d21e56fa
|
@ -105,9 +105,11 @@ let
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace src/filesys.cpp --replace "/bin/rm" "${coreutils}/bin/rm"
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
sed -i '/pagezero_size/d;/fixup_bundle/d' src/CMakeLists.txt
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
postInstall = lib.optionalString stdenv.isLinux ''
|
||||
mkdir -pv $out/share/minetest/games/minetest_game/
|
||||
cp -rv ${sources.data}/* $out/share/minetest/games/minetest_game/
|
||||
patchShebangs $out
|
||||
|
@ -119,8 +121,6 @@ let
|
|||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ pyrolagus fpletz fgaz ];
|
||||
# https://github.com/NixOS/nixpkgs/pull/186160#issuecomment-1212635918
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue