about summary refs log tree commit diff
path: root/pkgs/by-name/pr/previewqt/package.nix
blob: f493f6ec3dab363cfbd43bff80688e48879fb8da (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
  lib,
  vips,
  resvg,
  mpv,
  libraw,
  imagemagick,
  libdevil,
  stdenv,
  fetchFromGitLab,
  cmake,
  libarchive,
  qt6Packages,
  extra-cmake-modules,
  exiv2,
}:

stdenv.mkDerivation rec {
  pname = "previewqt";
  version = "3.0";

  src = fetchFromGitLab {
    owner = "lspies";
    repo = "previewqt";
    rev = "refs/tags/v${version}";
    hash = "sha256-cDtqgezKGgSdhw8x1mM4cZ0H3SfUPEyWP6rRD+kRwXc=";
  };

  # can't find qtquick3d
  strictDeps = false;

  nativeBuildInputs = [
    cmake
    extra-cmake-modules
    qt6Packages.wrapQtAppsHook
  ];

  buildInputs = [
    exiv2
    imagemagick
    qt6Packages.poppler
    qt6Packages.qtmultimedia
    qt6Packages.qtquick3d
    qt6Packages.qtsvg
    qt6Packages.qttools
    qt6Packages.qtwebengine
    libarchive
    libdevil
    libraw
    mpv
    resvg
    vips
  ];

  meta = {
    description = "Qt-based file previewer";
    homepage = "https://photoqt.org/previewqt";
    changelog = "https://gitlab.com/lspies/previewqt/-/blob/v${version}/CHANGELOG";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ eclairevoyant ];
    mainProgram = "previewqt";
    platforms = lib.platforms.linux;
  };
}