nixpkgs/pkgs/applications/graphics/qview/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
841 B
Nix
Raw Normal View History

{ lib
, mkDerivation
, fetchFromGitHub
, qmake
, qtbase
2022-11-27 12:37:12 +00:00
, qttools
, qtimageformats
, qtsvg
2023-10-18 16:53:06 +00:00
, qtx11extras
, x11Support ? true
}:
2020-02-24 21:11:41 +00:00
mkDerivation rec {
2019-05-28 20:12:38 +00:00
pname = "qview";
2023-10-18 16:53:06 +00:00
version = "6.1";
2020-02-24 21:11:41 +00:00
src = fetchFromGitHub {
owner = "jurplel";
repo = "qView";
2019-05-28 20:12:38 +00:00
rev = version;
2023-10-18 16:53:06 +00:00
hash = "sha256-h1K1Smfy875NoHtgUrOvZZp0IgcQdbyuQhXU9ndM4bA=";
};
2020-02-24 21:11:41 +00:00
qmakeFlags = lib.optionals (!x11Support) [ "CONFIG+=NO_X11" ];
nativeBuildInputs = [ qmake ];
2020-02-24 21:11:41 +00:00
buildInputs = [
qtbase
2022-11-27 12:37:12 +00:00
qttools
qtimageformats
qtsvg
2023-10-18 16:53:06 +00:00
] ++ lib.optionals x11Support [ qtx11extras ];
2020-02-24 21:11:41 +00:00
meta = with lib; {
description = "Practical and minimal image viewer";
mainProgram = "qview";
2019-05-28 20:12:38 +00:00
homepage = "https://interversehq.com/qview/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ acowley ];
platforms = platforms.all;
};
}