mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
d6fb49d8c2
Clarified license to GPL3+. Building on darwin requires qtsvg. qtimageformats adds support for extra image formats, such as WebP.
41 lines
715 B
Nix
41 lines
715 B
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, qmake
|
|
, qtbase
|
|
, qtimageformats
|
|
, qtsvg
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "qview";
|
|
version = "4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jurplel";
|
|
repo = "qView";
|
|
rev = version;
|
|
sha256 = "15n9cq7w3ckinnx38hvncxrbkv4qm4k51sal41q4y0pkvhmafhnr";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
qtimageformats
|
|
qtsvg
|
|
];
|
|
|
|
patchPhase = ''
|
|
sed "s|/usr/|$out/|g" -i qView.pro
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Practical and minimal image viewer";
|
|
homepage = "https://interversehq.com/qview/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ acowley ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|