qview: fix build on darwin, support extra formats

Clarified license to GPL3+.
Building on darwin requires qtsvg.
qtimageformats adds support for extra image formats, such as WebP.
This commit is contained in:
Ryan Burns 2021-08-15 18:36:49 -07:00
parent 58abd73367
commit d6fb49d8c2

@ -1,4 +1,11 @@
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase }:
{ lib
, mkDerivation
, fetchFromGitHub
, qmake
, qtbase
, qtimageformats
, qtsvg
}:
mkDerivation rec {
pname = "qview";
@ -15,6 +22,8 @@ mkDerivation rec {
buildInputs = [
qtbase
qtimageformats
qtsvg
];
patchPhase = ''
@ -24,7 +33,7 @@ mkDerivation rec {
meta = with lib; {
description = "Practical and minimal image viewer";
homepage = "https://interversehq.com/qview/";
license = licenses.gpl3;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ acowley ];
platforms = platforms.all;
};