about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/photoqt/default.nix
blob: 3b17ce8fd4f87b797e47948292f2de0cad49ea90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ mkDerivation, lib, fetchurl, cmake, exiv2, graphicsmagick, libraw
, qtbase, qtdeclarative, qtmultimedia, qtquickcontrols2, qttools, qtgraphicaleffects
, extra-cmake-modules, poppler, kimageformats, libarchive, pugixml, wrapQtAppsHook}:

mkDerivation rec {
  pname = "photoqt";
  version = "3.1";

  src = fetchurl {
    url = "https://${pname}.org/pkgs/${pname}-${version}.tar.gz";
    hash = "sha256-hihfqE7XIlSAxPg3Kzld3LrYS97wDH//GGqpBpBwFm0=";
  };

  nativeBuildInputs = [ cmake extra-cmake-modules qttools wrapQtAppsHook ];

  buildInputs = [
    qtbase qtquickcontrols2 exiv2 graphicsmagick poppler
    qtmultimedia qtdeclarative libraw qtgraphicaleffects
    kimageformats libarchive pugixml
  ];

  cmakeFlags = [
    "-DFREEIMAGE=OFF"
    "-DDEVIL=OFF"
    "-DCHROMECAST=OFF"
  ];

  preConfigure = ''
    export MAGICK_LOCATION="${graphicsmagick}/include/GraphicsMagick"
  '';

  meta = {
    homepage = "https://photoqt.org/";
    description = "Simple, yet powerful and good looking image viewer";
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.unix;
  };
}