aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/graphics/qview/default.nix
blob: 001616ab41dd5d876801c799f5f050d359987796 (plain)
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
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase }:

mkDerivation rec {
  pname = "qview";
  version = "4.0";

  src = fetchFromGitHub {
    owner = "jurplel";
    repo = "qView";
    rev = version;
    sha256 = "15n9cq7w3ckinnx38hvncxrbkv4qm4k51sal41q4y0pkvhmafhnr";
  };

  nativeBuildInputs = [ qmake ];

  buildInputs = [
    qtbase
  ];

  patchPhase = ''
    sed "s|/usr/|$out/|g" -i qView.pro
  '';

  meta = with lib; {
    description = "Practical and minimal image viewer";
    homepage = "https://interversehq.com/qview/";
    license = licenses.gpl3;
    maintainers = with maintainers; [ acowley ];
    platforms = platforms.all;
  };
}