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