summary refs log tree commit diff
diff options
context:
space:
mode:
authorNathan Moore <nathanmoore@cox.net>2016-07-27 09:49:02 -0700
committerRok Garbas <rok@garbas.si>2016-07-27 18:49:02 +0200
commit251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb (patch)
tree2a23f63298542516b6970390c38f52142f5af41c
parent1a24de7c16a75c523b32306ae40b1c949e763fe0 (diff)
downloadnixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.tar
nixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.tar.gz
nixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.tar.bz2
nixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.tar.lz
nixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.tar.xz
nixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.tar.zst
nixlib-251a1ccf55d34aa0da7ecc4ac96f9f741e343ceb.zip
solarus-quest-editor: init at 1.4.5 (#17286)
-rw-r--r--pkgs/development/tools/solarus-quest-editor/default.nix37
-rw-r--r--pkgs/development/tools/solarus-quest-editor/patches/fix-install.patch16
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 55 insertions, 0 deletions
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 <natedevv@gmail.com>"
+--- 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 { };