From 83a0d5d0139c0650b74e83cb2160907ddcf7a7d5 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Tue, 4 Sep 2018 22:03:56 -0400 Subject: [PATCH 1/2] solarus: 1.4.5 -> 1.5.3 --- pkgs/games/solarus/default.nix | 18 ++++++++++-------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/games/solarus/default.nix b/pkgs/games/solarus/default.nix index 6f7876e48723..23abadf66ae5 100644 --- a/pkgs/games/solarus/default.nix +++ b/pkgs/games/solarus/default.nix @@ -1,21 +1,23 @@ -{ stdenv, fetchFromGitHub, cmake, luajit, +{ stdenv, fetchFromGitLab, cmake, luajit, SDL2, SDL2_image, SDL2_ttf, physfs, - openal, libmodplug, libvorbis}: + openal, libmodplug, libvorbis, + qtbase, qttools }: stdenv.mkDerivation rec { name = "solarus-${version}"; - version = "1.4.5"; + version = "1.5.3"; - src = fetchFromGitHub { - owner = "christopho"; + src = fetchFromGitLab { + owner = "solarus-games"; repo = "solarus"; - rev = "d9fdb9fdb4e1b9fc384730a9279d134ae9f2c70e"; - sha256 = "0xjx789d6crm322wmkqyq9r288vddsha59yavhy78c4r01gs1p5v"; + rev = "v1.5.3"; + sha256 = "035hkdw3a1ryasj5wfa1xla1xmpnc3hjp4s20sl9ywip41675vaz"; }; buildInputs = [ cmake luajit SDL2 SDL2_image SDL2_ttf physfs - openal libmodplug libvorbis ]; + openal libmodplug libvorbis + qtbase qttools ]; enableParallelBuilding = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 436c44609ec9..23d24aa04732 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20157,7 +20157,7 @@ with pkgs; lua = lua5_1; }; - solarus = callPackage ../games/solarus { }; + solarus = libsForQt5.callPackage ../games/solarus { }; solarus-quest-editor = libsForQt5.callPackage ../development/tools/solarus-quest-editor { }; From 455f8151fdeaba4e5fbbd9e17640f25ed70e0f50 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Tue, 4 Sep 2018 22:04:33 -0400 Subject: [PATCH 2/2] solarus-quest-editor: 1.4.5 -> 1.5.3 --- .../tools/solarus-quest-editor/default.nix | 27 ++++++++++----- ...beab62594f73e57190c49848c848487214cf.patch | 33 +++++++++++++++++++ 2 files changed, 52 insertions(+), 8 deletions(-) create mode 100644 pkgs/development/tools/solarus-quest-editor/patches/partial-f285beab62594f73e57190c49848c848487214cf.patch diff --git a/pkgs/development/tools/solarus-quest-editor/default.nix b/pkgs/development/tools/solarus-quest-editor/default.nix index 3df6d3de3e16..5a340d309495 100644 --- a/pkgs/development/tools/solarus-quest-editor/default.nix +++ b/pkgs/development/tools/solarus-quest-editor/default.nix @@ -1,17 +1,17 @@ -{ stdenv, fetchFromGitHub, cmake, luajit, +{ stdenv, fetchFromGitLab, cmake, luajit, SDL2, SDL2_image, SDL2_ttf, physfs, openal, libmodplug, libvorbis, solarus, - qtbase, qttools }: + qtbase, qttools, fetchpatch }: stdenv.mkDerivation rec { name = "solarus-quest-editor-${version}"; - version = "1.4.5"; + version = "1.5.3"; - src = fetchFromGitHub { - owner = "christopho"; + src = fetchFromGitLab { + owner = "solarus-games"; repo = "solarus-quest-editor"; - rev = "61f0fa7a5048994fcd9c9f3a3d1255d0be2967df"; - sha256 = "1fpq55nvs5k2rxgzgf39c069rmm73vmv4gr5lvmqzgsz07rkh07f"; + rev = "v1.5.3"; + sha256 = "1b9mg04yy4pnrl745hbc82rz79k0f8ci3wv7gvsm3a998q8m98si"; }; buildInputs = [ cmake luajit SDL2 @@ -19,7 +19,18 @@ stdenv.mkDerivation rec { openal libmodplug libvorbis solarus qtbase qttools ]; - patches = [ ./patches/fix-install.patch ]; + patches = [ + ./patches/fix-install.patch + + # Next two patches should be fine to remove for next release. + # This commit fixes issues AND adds features *sighs* + ./patches/partial-f285beab62594f73e57190c49848c848487214cf.patch + + (fetchpatch { + url = https://gitlab.com/solarus-games/solarus-quest-editor/commit/8f308463030c18cd4f7c8a6052028fff3b7ca35a.patch; + sha256 = "1jq48ghhznrp47q9lq2rhh48a1z4aylyy4qaniaqyfyq3vihrchr"; + }) + ]; meta = with stdenv.lib; { description = "The editor for the Zelda-like ARPG game engine, Solarus"; diff --git a/pkgs/development/tools/solarus-quest-editor/patches/partial-f285beab62594f73e57190c49848c848487214cf.patch b/pkgs/development/tools/solarus-quest-editor/patches/partial-f285beab62594f73e57190c49848c848487214cf.patch new file mode 100644 index 000000000000..73e817fcfbe8 --- /dev/null +++ b/pkgs/development/tools/solarus-quest-editor/patches/partial-f285beab62594f73e57190c49848c848487214cf.patch @@ -0,0 +1,33 @@ +From f285beab62594f73e57190c49848c848487214cf Mon Sep 17 00:00:00 2001 +From: stdgregwar +Date: Sun, 1 Jul 2018 00:00:41 +0200 +Subject: [PATCH] Shader previewer base + + +diff --git a/include/widgets/tileset_view.h b/include/widgets/tileset_view.h +index 615f432..799a4c6 100644 +--- a/include/widgets/tileset_view.h ++++ b/include/widgets/tileset_view.h +@@ -23,6 +23,7 @@ + #include "pattern_separation.h" + #include + #include ++#include + + class QAction; + +diff --git a/src/widgets/text_editor.cpp b/src/widgets/text_editor.cpp +index 4f2ff68..90080a9 100644 +--- a/src/widgets/text_editor.cpp ++++ b/src/widgets/text_editor.cpp +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include + #include + +-- +2.18.0 +