mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
solarus-quest-editor: 1.6.4 -> 2.0.0
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
parent
73dd253079
commit
d18d7c6bf8
3 changed files with 44 additions and 15 deletions
|
@ -1,42 +1,59 @@
|
|||
{
|
||||
lib,
|
||||
mkDerivation,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
fetchFromGitHub,
|
||||
replaceVars,
|
||||
cmake,
|
||||
ninja,
|
||||
luajit,
|
||||
SDL2,
|
||||
SDL2_image,
|
||||
SDL2_ttf,
|
||||
physfs,
|
||||
fetchpatch,
|
||||
openal,
|
||||
libmodplug,
|
||||
libvorbis,
|
||||
solarus,
|
||||
qtbase,
|
||||
qttools,
|
||||
glm,
|
||||
qt6Packages,
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
let
|
||||
qlementine-src = fetchFromGitHub {
|
||||
owner = "oclero";
|
||||
repo = "qlementine";
|
||||
tag = "v1.2.0";
|
||||
hash = "sha256-25PKOpQl3IkBXX14gt8KKYXXJKeutQ75O7BftEqCAxk=";
|
||||
};
|
||||
|
||||
inherit (qt6Packages)
|
||||
qtbase
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "solarus-quest-editor";
|
||||
version = "1.6.4";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "solarus-games";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn";
|
||||
hash = "sha256-GTslxValldReWGb3x67zRPrvQUuCO/HQSXOEQlJfAmw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/solarus-games/solarus-quest-editor/-/commit/81d5c7f1602cf355684d70a5e3449fefccfc44b8.patch";
|
||||
sha256 = "tVUxkkDp2PcOHGy4dGvUcYj9gF7k4LN21VuxohCw9NE=";
|
||||
})
|
||||
(replaceVars ./qlementine-src.patch { inherit qlementine-src; })
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
ninja
|
||||
qttools
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
luajit
|
||||
|
@ -49,13 +66,12 @@ mkDerivation rec {
|
|||
libvorbis
|
||||
solarus
|
||||
qtbase
|
||||
qttools
|
||||
glm
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Editor for the Zelda-like ARPG game engine, Solarus";
|
||||
mainProgram = "solarus-quest-editor";
|
||||
mainProgram = "solarus-editor";
|
||||
longDescription = ''
|
||||
Solarus is a game engine for Zelda-like ARPG games written in lua.
|
||||
Many full-fledged games have been writen for the engine.
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/cmake/AddDependencies.cmake b/cmake/AddDependencies.cmake
|
||||
index 8272d14..054c079 100644
|
||||
--- a/cmake/AddDependencies.cmake
|
||||
+++ b/cmake/AddDependencies.cmake
|
||||
@@ -51,7 +51,6 @@ endif()
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
qlementine
|
||||
- GIT_REPOSITORY https://github.com/oclero/qlementine.git
|
||||
- GIT_TAG v1.2.0
|
||||
+ SOURCE_DIR "@qlementine-src@"
|
||||
)
|
||||
FetchContent_MakeAvailable(qlementine)
|
|
@ -15291,7 +15291,7 @@ with pkgs;
|
|||
|
||||
# solarus and solarus-quest-editor must use the same version of Qt.
|
||||
solarus = callPackage ../games/solarus { };
|
||||
solarus-quest-editor = libsForQt5.callPackage ../development/tools/solarus-quest-editor { };
|
||||
solarus-quest-editor = callPackage ../development/tools/solarus-quest-editor { };
|
||||
|
||||
# You still can override by passing more arguments.
|
||||
spring = callPackage ../games/spring { asciidoc = asciidoc-full; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue