2023-07-15 17:15:38 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
xorg,
|
|
|
|
libpng,
|
|
|
|
libwebp,
|
|
|
|
libtiff,
|
|
|
|
libjpeg,
|
|
|
|
jasper,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xv";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "4.2.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jasper-software";
|
|
|
|
repo = "xv";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "TXUcdrwtPNiS7z795RbzBXzNYRADeVtF5uz4aovLo/M=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ xorg.libX11 xorg.libXt libpng libwebp libtiff jasper ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Classic image viewer and editor for X.";
|
|
|
|
homepage = "http://www.trilon.com/xv/";
|
|
|
|
license = {
|
|
|
|
fullName = "XV License";
|
|
|
|
url = "https://github.com/jasper-software/xv/blob/main/src/README";
|
|
|
|
free = false;
|
|
|
|
};
|
|
|
|
maintainers = with lib.maintainers; [ galen ];
|
|
|
|
};
|
|
|
|
}
|