2021-01-25 09:26:54 +01:00
|
|
|
{ mkDerivation, lib, fetchurl, cmake, exiv2, graphicsmagick, libraw, fetchpatch
|
2017-08-31 16:12:52 +02:00
|
|
|
, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols, qttools, qtgraphicaleffects
|
2019-06-27 08:18:46 +02:00
|
|
|
, extra-cmake-modules, poppler, kimageformats, libarchive, libdevil
|
2015-12-20 03:18:02 +01:00
|
|
|
}:
|
2014-12-27 00:18:18 +01:00
|
|
|
|
2019-12-08 15:11:41 +01:00
|
|
|
mkDerivation rec {
|
2019-06-27 08:18:46 +02:00
|
|
|
pname = "photoqt";
|
|
|
|
version = "1.7.1";
|
2017-08-31 16:12:52 +02:00
|
|
|
|
2014-12-27 00:18:18 +01:00
|
|
|
src = fetchurl {
|
2019-06-27 08:18:46 +02:00
|
|
|
url = "https://${pname}.org/pkgs/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1qvxdh3cbjcywqx0da2qp8z092660qyzv5yknqbps2zr12qqb103";
|
2014-12-27 00:18:18 +01:00
|
|
|
};
|
|
|
|
|
2019-06-27 08:18:46 +02:00
|
|
|
patches = [
|
|
|
|
# Fixes build with exiv2 0.27.1
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/luspi/photoqt/commit/c6fd41478e818f3a651d40f96cab3d790e1c09a4.patch";
|
|
|
|
sha256 = "1j2pdr7hm3js7lswhb4qkf9sj9viclhjqz50qxpyd7pqrl1gf2va";
|
|
|
|
})
|
|
|
|
];
|
2017-11-16 02:12:18 +01:00
|
|
|
|
2019-06-27 08:18:46 +02:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules qttools ];
|
2017-11-16 02:12:18 +01:00
|
|
|
|
2016-01-18 04:53:25 +01:00
|
|
|
buildInputs = [
|
2019-06-27 08:18:46 +02:00
|
|
|
qtbase qtquickcontrols exiv2 graphicsmagick poppler
|
2017-08-31 16:12:52 +02:00
|
|
|
qtmultimedia qtdeclarative libraw qtgraphicaleffects
|
2019-06-27 08:18:46 +02:00
|
|
|
kimageformats libarchive
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DFREEIMAGE=OFF"
|
|
|
|
"-DDEVIL=OFF"
|
2016-01-18 04:53:25 +01:00
|
|
|
];
|
2014-12-27 00:18:18 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://photoqt.org/";
|
2014-12-27 00:18:18 +01:00
|
|
|
description = "Simple, yet powerful and good looking image viewer";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2014-12-27 00:18:18 +01:00
|
|
|
};
|
|
|
|
}
|