@@ -1,21 +1,30 @@
1−{ stdenv, fetchurl, cmake, qt5, exiv2, graphicsmagick }:
1+{ stdenv, fetchurl, cmake, makeWrapper, qt5, exiv2, graphicsmagick }:
22
33let
4− version = "1.2";
4+ version = "1.3";
5+ qmlPath = stdenv.lib.makeSearchPath "lib/qt5/qml/" [
6+ qt5.quickcontrols
7+ qt5.declarative
8+ qt5.multimedia
9+ ];
510in
611stdenv.mkDerivation rec {
712 name = "photoqt-${version}";
813 src = fetchurl {
914 url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz";
10− sha256 = "1dnnj2h3j517hcbjxlzk035fis44wdmqq7dvhwpmq1rcr0v32aaa";
15+ sha256 = "0j2kvxfb5pd9abciv161nkcsyam6n8kfqs8ymwj2mxiqflwbmfl1";
1116 };
1217
13− buildInputs = [ cmake qt5.base qt5.tools exiv2 graphicsmagick ];
18+ buildInputs = [ cmake makeWrapper qt5.base qt5.tools exiv2 graphicsmagick ];
1419
1520 preConfigure = ''
1621 export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
1722 '';
1823
24+ postInstall = ''
25+ wrapProgram $out/bin/photoqt --set QML2_IMPORT_PATH "${qmlPath}"
26+ '';
27+
1928 meta = {
2029 homepage = "http://photoqt.org/";
2130 description = "Simple, yet powerful and good looking image viewer";