about summary refs log tree commit diff
path: root/pkgs/applications/gis/openorienteering-mapper
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2018-04-06 20:13:47 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2018-04-07 00:23:45 +0100
commit0fe94a1258d25a83a690b7c6c6b62bcc61bce213 (patch)
treeee40aeddc188aa8fd805adeee569718d9639bbde /pkgs/applications/gis/openorienteering-mapper
parent4c7db1c77a50f074cd758a12fb54afe5d62e08c6 (diff)
downloadnixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.tar
nixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.tar.gz
nixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.tar.bz2
nixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.tar.lz
nixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.tar.xz
nixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.tar.zst
nixlib-0fe94a1258d25a83a690b7c6c6b62bcc61bce213.zip
openorienteering-mapper: Load additional image formats
This allows tiff images to be loaded correctly as templates.
Diffstat (limited to 'pkgs/applications/gis/openorienteering-mapper')
-rw-r--r--pkgs/applications/gis/openorienteering-mapper/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/applications/gis/openorienteering-mapper/default.nix b/pkgs/applications/gis/openorienteering-mapper/default.nix
index 7401d98168d1..c85f39a4fb4e 100644
--- a/pkgs/applications/gis/openorienteering-mapper/default.nix
+++ b/pkgs/applications/gis/openorienteering-mapper/default.nix
@@ -1,12 +1,13 @@
 { stdenv, fetchFromGitHub, gdal, cmake, ninja, proj, clipper, zlib, qtbase, qttools
-  , qtlocation, qtsensors, doxygen, cups, makeWrapper
+  , qtlocation, qtsensors, doxygen, cups, makeWrapper, qtimageformats
 }:
 
 stdenv.mkDerivation rec {
   name = "OpenOrienteering-Mapper-${version}";
   version = "0.8.1.2";
 
-  buildInputs = [ gdal qtbase qttools qtlocation qtsensors clipper zlib proj doxygen cups];
+  buildInputs = [ gdal qtbase qttools qtlocation qtimageformats
+                  qtsensors clipper zlib proj doxygen cups];
 
   nativeBuildInputs = [ cmake makeWrapper ninja ];
 
@@ -48,7 +49,8 @@ stdenv.mkDerivation rec {
     # Fixes "This application failed to start because it could not find or load the Qt
     # platform plugin "cocoa"."
     wrapProgram $out/Mapper.app/Contents/MacOS/Mapper \
-      --set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms
+      --set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms \
+      --set QT_PLUGIN_PATH ${qtbase.bin}/${qtbase.qtPluginPrefix}:${qtimageformats}/${qtbase.qtPluginPrefix}
     mkdir -p $out/bin
     ln -s $out/Mapper.app/Contents/MacOS/Mapper $out/bin/mapper
     '';