2017-08-31 15:12:52 +01:00
|
|
|
{ stdenv, fetchurl, cmake, exiv2, graphicsmagick, libraw
|
|
|
|
, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols, qttools, qtgraphicaleffects
|
2015-12-20 02:18:02 +00:00
|
|
|
}:
|
2014-12-26 23:18:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "photoqt-${version}";
|
2017-08-31 15:12:52 +01:00
|
|
|
version = "1.5.1";
|
|
|
|
|
2014-12-26 23:18:18 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz";
|
2017-08-31 15:12:52 +01:00
|
|
|
sha256 = "17kkpzkmzfnigs26jjyd75iy58qffjsclif81cmviq73lzmqy0b1";
|
2014-12-26 23:18:18 +00:00
|
|
|
};
|
|
|
|
|
2017-11-16 01:12:18 +00:00
|
|
|
patches = [ ./photoqt-1.5.1-qt-5.9.patch ];
|
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-11-16 01:12:18 +00:00
|
|
|
|
2016-01-18 03:53:25 +00:00
|
|
|
buildInputs = [
|
2017-05-17 20:26:11 +01:00
|
|
|
qtbase qtquickcontrols qttools exiv2 graphicsmagick
|
2017-08-31 15:12:52 +01:00
|
|
|
qtmultimedia qtdeclarative libraw qtgraphicaleffects
|
2016-01-18 03:53:25 +00:00
|
|
|
];
|
2014-12-26 23:18:18 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
|
|
|
|
'';
|
|
|
|
|
2017-11-16 01:12:18 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-26 23:18:18 +00:00
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://photoqt.org/;
|
2014-12-26 23:18:18 +00:00
|
|
|
description = "Simple, yet powerful and good looking image viewer";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eduarrrd ];
|
|
|
|
};
|
|
|
|
}
|