diff --git a/pkgs/development/tools/solarus-quest-editor/default.nix b/pkgs/development/tools/solarus-quest-editor/default.nix new file mode 100644 index 000000000000..3df6d3de3e16 --- /dev/null +++ b/pkgs/development/tools/solarus-quest-editor/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, cmake, luajit, + SDL2, SDL2_image, SDL2_ttf, physfs, + openal, libmodplug, libvorbis, solarus, + qtbase, qttools }: + +stdenv.mkDerivation rec { + name = "solarus-quest-editor-${version}"; + version = "1.4.5"; + + src = fetchFromGitHub { + owner = "christopho"; + repo = "solarus-quest-editor"; + rev = "61f0fa7a5048994fcd9c9f3a3d1255d0be2967df"; + sha256 = "1fpq55nvs5k2rxgzgf39c069rmm73vmv4gr5lvmqzgsz07rkh07f"; + }; + + buildInputs = [ cmake luajit SDL2 + SDL2_image SDL2_ttf physfs + openal libmodplug libvorbis + solarus qtbase qttools ]; + + patches = [ ./patches/fix-install.patch ]; + + meta = with stdenv.lib; { + description = "The editor for the Zelda-like ARPG game engine, Solarus"; + longDescription = '' + Solarus is a game engine for Zelda-like ARPG games written in lua. + Many full-fledged games have been writen for the engine. + Games can be created easily using the editor. + ''; + homepage = http://www.solarus-games.org; + license = licenses.gpl3; + maintainers = [ maintainers.Nate-Devv ]; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/development/tools/solarus-quest-editor/patches/fix-install.patch b/pkgs/development/tools/solarus-quest-editor/patches/fix-install.patch new file mode 100644 index 000000000000..98c26c1a7061 --- /dev/null +++ b/pkgs/development/tools/solarus-quest-editor/patches/fix-install.patch @@ -0,0 +1,16 @@ +# Description Fix CMakeLists.txt to install binaries. Fixed in 1.5 upstream. +# Author "Nathan R. Moore " +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -359,6 +359,11 @@ + "${MODPLUG_LIBRARY}" + ) + ++# Set files to install ++install(TARGETS solarus-quest-editor ++ RUNTIME DESTINATION bin ++) ++ + # Platform specific. + + # Windows: disable the console. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 72e8462e0686..864866ed23e8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15815,6 +15815,8 @@ in }; solarus = callPackage ../games/solarus { }; + + solarus-quest-editor = qt5.callPackage ../development/tools/solarus-quest-editor { }; # You still can override by passing more arguments. space-orbit = callPackage ../games/space-orbit { };