@@ -1,23 +1,36 @@
1−{ stdenv, fetchurl, cmake, exiv2, graphicsmagick, libraw
1+{ stdenv, fetchurl, cmake, exiv2, graphicsmagick, libraw, fetchpatch
22, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols, qttools, qtgraphicaleffects
3+, extra-cmake-modules, poppler, kimageformats, libarchive, libdevil
34}:
45
56stdenv.mkDerivation rec {
6− name = "photoqt-${version}";
7− version = "1.5.1";
7+ pname = "photoqt";
8+ version = "1.7.1";
89
910 src = fetchurl {
10− url = "https://photoqt.org/pkgs/photoqt-${version}.tar.gz";
11− sha256 = "17kkpzkmzfnigs26jjyd75iy58qffjsclif81cmviq73lzmqy0b1";
11+ url = "https://${pname}.org/pkgs/${pname}-${version}.tar.gz";
12+ sha256 = "1qvxdh3cbjcywqx0da2qp8z092660qyzv5yknqbps2zr12qqb103";
1213 };
1314
14− patches = [ ./photoqt-1.5.1-qt-5.9.patch ];
15+ patches = [
16+ # Fixes build with exiv2 0.27.1
17+ (fetchpatch {
18+ url = "https://gitlab.com/luspi/photoqt/commit/c6fd41478e818f3a651d40f96cab3d790e1c09a4.patch";
19+ sha256 = "1j2pdr7hm3js7lswhb4qkf9sj9viclhjqz50qxpyd7pqrl1gf2va";
20+ })
21+ ];
1522
16− nativeBuildInputs = [ cmake ];
23+ nativeBuildInputs = [ cmake extra-cmake-modules qttools ];
1724
1825 buildInputs = [
19− qtbase qtquickcontrols qttools exiv2 graphicsmagick
26+ qtbase qtquickcontrols exiv2 graphicsmagick poppler
2027 qtmultimedia qtdeclarative libraw qtgraphicaleffects
28+ kimageformats libarchive
29+ ];
30+
31+ cmakeFlags = [
32+ "-DFREEIMAGE=OFF"
33+ "-DDEVIL=OFF"
2134 ];
2235
2336 preConfigure = ''