nixpkgs-suyu/pkgs/applications/graphics/photoqt/default.nix

36 lines
945 B
Nix
Raw Normal View History

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