2016-04-13 14:38:25 +02:00
|
|
|
{ stdenv, fetchurl, cmake, makeQtWrapper, exiv2, graphicsmagick
|
2015-12-20 03:18:02 +01:00
|
|
|
, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols, qttools
|
|
|
|
}:
|
2014-12-27 00:18:18 +01:00
|
|
|
|
|
|
|
let
|
2015-09-10 01:00:51 +02:00
|
|
|
version = "1.3";
|
2014-12-27 00:18:18 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "photoqt-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://photoqt.org/pkgs/photoqt-${version}.tar.gz";
|
2015-09-10 01:00:51 +02:00
|
|
|
sha256 = "0j2kvxfb5pd9abciv161nkcsyam6n8kfqs8ymwj2mxiqflwbmfl1";
|
2014-12-27 00:18:18 +01:00
|
|
|
};
|
|
|
|
|
2016-01-18 04:53:25 +01:00
|
|
|
buildInputs = [
|
2016-04-13 14:38:25 +02:00
|
|
|
cmake makeQtWrapper qtbase qtquickcontrols qttools exiv2 graphicsmagick
|
|
|
|
qtmultimedia qtdeclarative
|
2016-01-18 04:53:25 +01:00
|
|
|
];
|
2014-12-27 00:18:18 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
|
|
|
|
'';
|
|
|
|
|
2015-09-10 01:00:51 +02:00
|
|
|
postInstall = ''
|
2016-04-13 14:38:25 +02:00
|
|
|
wrapQtProgram $out/bin/photoqt
|
2015-09-10 01:00:51 +02:00
|
|
|
'';
|
|
|
|
|
2014-12-27 00:18:18 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://photoqt.org/";
|
|
|
|
description = "Simple, yet powerful and good looking image viewer";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eduarrrd ];
|
|
|
|
};
|
|
|
|
}
|