2023-03-15 16:39:30 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, cmake, exiv2, graphicsmagick, libraw
|
|
|
|
, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols2, qttools, qtgraphicaleffects
|
|
|
|
, extra-cmake-modules, poppler, kimageformats, libarchive, pugixml, wrapQtAppsHook}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "photoqt";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://${pname}.org/pkgs/${pname}-${version}.tar.gz";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-hihfqE7XIlSAxPg3Kzld3LrYS97wDH//GGqpBpBwFm0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules qttools wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
qtbase qtquickcontrols2 exiv2 graphicsmagick poppler
|
2020-04-24 23:36:52 +00:00
|
|
|
qtmultimedia qtdeclarative libraw qtgraphicaleffects
|
2023-03-15 16:39:30 +00:00
|
|
|
kimageformats libarchive pugixml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DFREEIMAGE=OFF"
|
|
|
|
"-DDEVIL=OFF"
|
2023-03-15 16:39:30 +00:00
|
|
|
"-DCHROMECAST=OFF"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://photoqt.org/";
|
|
|
|
description = "Simple, yet powerful and good looking image viewer";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|