about summary refs log tree commit diff
path: root/pkgs/games/solarus
diff options
context:
space:
mode:
authorfreezeboy <freezeboy@users.noreply.github.com>2020-11-05 17:35:29 +0100
committerfreezeboy <freezeboy@users.noreply.github.com>2020-11-20 22:24:19 +0100
commit9f930f68c0f7153c00db33e0ba78a8cfa6b3a020 (patch)
treed1d0562ee104ead6672583dd63b3f0c2ae98466a /pkgs/games/solarus
parent9950899236f8530633a4d52c0dffb461365ed8a0 (diff)
solarus: move to multiple outputs
motivation: Let solarus-quest-editor require only required bits
Diffstat (limited to 'pkgs/games/solarus')
-rw-r--r--pkgs/games/solarus/default.nix24
1 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/games/solarus/default.nix b/pkgs/games/solarus/default.nix
index c0daa99c15a69..c204846ae2fcb 100644
--- a/pkgs/games/solarus/default.nix
+++ b/pkgs/games/solarus/default.nix
@@ -1,26 +1,34 @@
-{ lib, mkDerivation, fetchFromGitLab, cmake, luajit,
-  SDL2, SDL2_image, SDL2_ttf, physfs,
-  openal, libmodplug, libvorbis,
-  qtbase, qttools }:
+{ lib, mkDerivation, fetchFromGitLab, cmake, luajit
+,  SDL2, SDL2_image, SDL2_ttf, physfs, glm
+, openal, libmodplug, libvorbis
+, qtbase, qttools }:
 
 mkDerivation rec {
   pname = "solarus";
-  version = "1.6.2";
+  version = "1.6.4";
 
   src = fetchFromGitLab {
     owner = "solarus-games";
     repo = pname;
     rev = "v${version}";
-    sha256 = "0d0xfjbmamz84aajxfc0fwrj8862xxbxz6n4xnc05r1m4g7gba77";
+    sha256 = "sbdlf+R9OskDQ5U5rqUX2gF8l/fj0sDJv6BL7H1I1Ng=";
   };
 
-  buildInputs = [ cmake luajit SDL2
+  outputs = [ "out" "lib" "dev" ];
+
+  nativeBuildInputs = [ cmake qttools ];
+  buildInputs = [ luajit SDL2
     SDL2_image SDL2_ttf physfs
     openal libmodplug libvorbis
-    qtbase qttools ];
+    qtbase glm ];
 
   enableParallelBuilding = true;
 
+  preFixup = ''
+    mkdir $lib/
+    mv $out/lib $lib
+  '';
+
   meta = with lib; {
     description = "A Zelda-like ARPG game engine";
     longDescription = ''