2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
2023-01-11 07:51:40 +00:00
|
|
|
, qttools
|
2021-08-18 13:19:15 +00:00
|
|
|
, qtimageformats
|
|
|
|
, qtsvg
|
2023-10-19 13:55:26 +00:00
|
|
|
, qtx11extras
|
|
|
|
, x11Support ? true
|
2021-08-18 13:19:15 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qview";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jurplel";
|
|
|
|
repo = "qView";
|
|
|
|
rev = version;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-h1K1Smfy875NoHtgUrOvZZp0IgcQdbyuQhXU9ndM4bA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
qmakeFlags = lib.optionals (!x11Support) [ "CONFIG+=NO_X11" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
2023-01-11 07:51:40 +00:00
|
|
|
qttools
|
2021-08-18 13:19:15 +00:00
|
|
|
qtimageformats
|
|
|
|
qtsvg
|
2023-10-19 13:55:26 +00:00
|
|
|
] ++ lib.optionals x11Support [ qtx11extras ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Practical and minimal image viewer";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qview";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://interversehq.com/qview/";
|
2021-08-18 13:19:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ acowley ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|