solarus: 1.6.4 -> 2.0.0
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
ninja,
|
||||
luajit,
|
||||
SDL2,
|
||||
SDL2_image,
|
||||
@@ -12,21 +14,27 @@
|
||||
openal,
|
||||
libmodplug,
|
||||
libvorbis,
|
||||
qtbase,
|
||||
qttools,
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "solarus";
|
||||
version = "1.6.4";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "solarus-games";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sbdlf+R9OskDQ5U5rqUX2gF8l/fj0sDJv6BL7H1I1Ng=";
|
||||
sha256 = "sha256-Kfg4pFZrEhsIU4RQlOox3hMpk2PXbOzrkwDElPGnDjA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://gitlab.com/solarus-games/solarus/-/merge_requests/1570
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/solarus-games/solarus/-/commit/8e1eee51cbfa5acf2511b059739153065b0ba21d.patch";
|
||||
hash = "sha256-KevGavtUhpHRt85WLh9ApmZ8a+NeWB1zDDHKGT08yhQ=";
|
||||
})
|
||||
];
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"lib"
|
||||
@@ -35,7 +43,7 @@ mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
qttools
|
||||
ninja
|
||||
];
|
||||
buildInputs = [
|
||||
luajit
|
||||
@@ -46,19 +54,14 @@ mkDerivation rec {
|
||||
openal
|
||||
libmodplug
|
||||
libvorbis
|
||||
qtbase
|
||||
glm
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
|
||||
(lib.cmakeFeature "CMAKE_INSTALL_DATADIR" "${placeholder "lib"}/share")
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
mkdir $lib/
|
||||
mv $out/lib $lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Zelda-like ARPG game engine";
|
||||
longDescription = ''
|
||||
|
||||
@@ -15290,7 +15290,7 @@ with pkgs;
|
||||
};
|
||||
|
||||
# solarus and solarus-quest-editor must use the same version of Qt.
|
||||
solarus = libsForQt5.callPackage ../games/solarus { };
|
||||
solarus = callPackage ../games/solarus { };
|
||||
solarus-quest-editor = libsForQt5.callPackage ../development/tools/solarus-quest-editor { };
|
||||
|
||||
# You still can override by passing more arguments.
|
||||
|
||||
Reference in New Issue
Block a user