@@ -1,12 +1,13 @@
11{ stdenv, fetchFromGitHub, gdal, cmake, ninja, proj, clipper, zlib, qtbase, qttools
2− , qtlocation, qtsensors, doxygen, cups, makeWrapper
2+ , qtlocation, qtsensors, doxygen, cups, makeWrapper, qtimageformats
33}:
44
55stdenv.mkDerivation rec {
66 name = "OpenOrienteering-Mapper-${version}";
7− version = "0.8.1";
7+ version = "0.8.1.2";
88
9− buildInputs = [ gdal qtbase qttools qtlocation qtsensors clipper zlib proj doxygen cups];
9+ buildInputs = [ gdal qtbase qttools qtlocation qtimageformats
10+ qtsensors clipper zlib proj doxygen cups];
1011
1112 nativeBuildInputs = [ cmake makeWrapper ninja ];
1213
@@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
1415 owner = "OpenOrienteering";
1516 repo = "mapper";
1617 rev = "v${version}";
17− sha256 = "10viw8bddl76mc2gh84jsl7h237yzvh4nim61pbd63vg1hlqisi6";
18+ sha256 = "0f7zxzl2n46qy86k6n3f6a7l1nhba58i28l8ngp3drf74qffaa33";
1819 };
1920
2021 cmakeFlags =
@@ -48,19 +49,20 @@ stdenv.mkDerivation rec {
4849 # Fixes "This application failed to start because it could not find or load the Qt
4950 # platform plugin "cocoa"."
5051 wrapProgram $out/Mapper.app/Contents/MacOS/Mapper \
51− --set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms
52+ --set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms \
53+ --set QT_PLUGIN_PATH ${qtbase.bin}/${qtbase.qtPluginPrefix}:${qtimageformats}/${qtbase.qtPluginPrefix}
5254 mkdir -p $out/bin
5355 ln -s $out/Mapper.app/Contents/MacOS/Mapper $out/bin/mapper
5456 '';
5557
56− meta = {
58+ meta = with stdenv.lib; {
5759 description = ''
5860 OpenOrienteering Mapper is an orienteering mapmaking program
5961 and provides a free alternative to the existing proprietary solution.
6062 '';
6163 homepage = https://www.openorienteering.org/apps/mapper/;
62− license = stdenv.lib.licenses.gpl3;
63− platforms = with stdenv.lib.platforms; darwin;
64− maintainers = with stdenv.lib.maintainers; [mpickering];
64+ license = licenses.gpl3;
65+ platforms = with platforms; linux ++ darwin;
66+ maintainers = with maintainers; [mpickering];
6567 };
6668}