minetest: 5.8.0 -> 5.9.0
* remove irrlichtmt input. Minetest's irrlicht fork has been moved into the minetest repo and is now statically linked. * remove mesa from buildInputs for darwin. Otherwise startup fails with "OpenGL driver version is not 1.2 or better." and "Shaders are enabled but GLSL is not supported by the driver.". Presumably that happens because minetest tries to use an incomplete OpenGL driver from mesa instead of the drivers provided by macOS. * remove withTouchSupport arg, as the upstream CMake option has been removed. Touch support should now always be enabled. * make minetest-touch an alias for minetestclient * remove unused args
This commit is contained in:
parent
33c8b1a720
commit
d61c03fe46
@ -3,7 +3,6 @@
|
||||
, fetchFromGitHub
|
||||
, gitUpdater
|
||||
, cmake
|
||||
, irrlichtmt
|
||||
, coreutils
|
||||
, libpng
|
||||
, bzip2
|
||||
@ -15,7 +14,6 @@
|
||||
, openal
|
||||
, libvorbis
|
||||
, sqlite
|
||||
, lua5_1
|
||||
, luajit
|
||||
, freetype
|
||||
, gettext
|
||||
@ -29,37 +27,32 @@
|
||||
, postgresql
|
||||
, hiredis
|
||||
, libiconv
|
||||
, zlib
|
||||
, libXrandr
|
||||
, libX11
|
||||
, ninja
|
||||
, prometheus-cpp
|
||||
, mesa
|
||||
, OpenGL
|
||||
, OpenAL ? openal
|
||||
, Carbon
|
||||
, Cocoa
|
||||
, withTouchSupport ? false
|
||||
, Kernel
|
||||
, buildClient ? true
|
||||
, buildServer ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "minetest";
|
||||
version = "5.8.0";
|
||||
version = "5.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "minetest";
|
||||
repo = "minetest";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-Oct8nQORSH8PjYs+gHU9QrKObMfapjAlGvycj+AJnOs=";
|
||||
hash = "sha256-cxbiuoD1J3WFoveUgxeR/XXdE7MMR0UEDFleDiaxnsA=";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "BUILD_CLIENT" buildClient)
|
||||
(lib.cmakeBool "BUILD_SERVER" buildServer)
|
||||
(lib.cmakeBool "ENABLE_PROMETHEUS" buildServer)
|
||||
(lib.cmakeBool "ENABLE_TOUCH" withTouchSupport)
|
||||
# Ensure we use system libraries
|
||||
(lib.cmakeBool "ENABLE_SYSTEM_GMP" true)
|
||||
(lib.cmakeBool "ENABLE_SYSTEM_JSONCPP" true)
|
||||
@ -85,7 +78,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
irrlichtmt
|
||||
jsoncpp
|
||||
gettext
|
||||
freetype
|
||||
@ -97,12 +89,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libspatialindex
|
||||
] ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform luajit) luajit
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
mesa # for <KHR/khrplatform.h>
|
||||
libiconv
|
||||
OpenGL
|
||||
OpenAL
|
||||
Carbon
|
||||
Cocoa
|
||||
Kernel
|
||||
] ++ lib.optionals buildClient [
|
||||
libpng
|
||||
libjpeg
|
||||
@ -112,6 +104,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libvorbis
|
||||
] ++ lib.optionals (buildClient && !stdenv.hostPlatform.isDarwin) [
|
||||
xorg.libX11
|
||||
xorg.libXi
|
||||
] ++ lib.optionals buildServer [
|
||||
leveldb
|
||||
postgresql
|
||||
|
@ -947,6 +947,7 @@ mapAliases ({
|
||||
miopen-hip = throw "'miopen-hip' has been replaced with 'rocmPackages.miopen-hip'"; # Added 2023-10-08
|
||||
miopen-opencl = throw "'miopen-opencl' has been replaced with 'rocmPackages.miopen-opencl'"; # Added 2023-10-08
|
||||
mime-types = mailcap; # Added 2022-01-21
|
||||
minetest-touch = minetestclient; # Added 2024-08-12
|
||||
minetestclient_5 = minetestclient; # Added 2023-12-11
|
||||
minetestserver_5 = minetestserver; # Added 2023-12-11
|
||||
minizip2 = pkgs.minizip-ng; # Added 2022-12-28
|
||||
|
@ -36046,10 +36046,9 @@ with pkgs;
|
||||
moon-buggy = callPackage ../games/moon-buggy { };
|
||||
|
||||
minetest = callPackage ../games/minetest {
|
||||
inherit (darwin.apple_sdk.frameworks) OpenGL OpenAL Carbon Cocoa;
|
||||
inherit (darwin.apple_sdk.frameworks) OpenGL OpenAL Carbon Cocoa Kernel;
|
||||
};
|
||||
minetestclient = minetest.override { buildServer = false; };
|
||||
minetest-touch = minetest.override { buildServer = false; withTouchSupport = true; };
|
||||
minetestserver = minetest.override { buildClient = false; };
|
||||
|
||||
mnemosyne = callPackage ../games/mnemosyne {
|
||||
|
Loading…
Reference in New Issue
Block a user