2021-08-16 02:36:49 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtimageformats
|
|
|
|
, qtsvg
|
|
|
|
}:
|
2020-02-24 21:11:41 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2019-05-28 21:12:38 +01:00
|
|
|
pname = "qview";
|
2020-11-09 23:37:09 +00:00
|
|
|
version = "4.0";
|
2020-02-24 21:11:41 +00:00
|
|
|
|
2019-05-28 17:09:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jurplel";
|
|
|
|
repo = "qView";
|
2019-05-28 21:12:38 +01:00
|
|
|
rev = version;
|
2020-11-09 23:37:09 +00:00
|
|
|
sha256 = "15n9cq7w3ckinnx38hvncxrbkv4qm4k51sal41q4y0pkvhmafhnr";
|
2019-05-28 17:09:20 +01:00
|
|
|
};
|
2020-02-24 21:11:41 +00:00
|
|
|
|
2019-05-28 17:09:20 +01:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2020-02-24 21:11:41 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
2021-08-16 02:36:49 +01:00
|
|
|
qtimageformats
|
|
|
|
qtsvg
|
2020-02-24 21:11:41 +00:00
|
|
|
];
|
|
|
|
|
2019-05-28 17:09:20 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed "s|/usr/|$out/|g" -i qView.pro
|
|
|
|
'';
|
2020-02-24 21:11:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2019-05-28 17:09:20 +01:00
|
|
|
description = "Practical and minimal image viewer";
|
2019-05-28 21:12:38 +01:00
|
|
|
homepage = "https://interversehq.com/qview/";
|
2021-08-16 02:36:49 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2019-05-28 17:09:20 +01:00
|
|
|
maintainers = with maintainers; [ acowley ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|