2023-07-04 03:30:33 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
xorg,
|
|
|
|
libpng,
|
|
|
|
libwebp,
|
|
|
|
libtiff,
|
|
|
|
libjpeg,
|
|
|
|
jasper,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xv";
|
2023-07-17 02:38:49 +01:00
|
|
|
version = "4.2.0";
|
2023-07-04 03:30:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jasper-software";
|
|
|
|
repo = "xv";
|
|
|
|
rev = "v${version}";
|
2023-07-17 02:38:49 +01:00
|
|
|
sha256 = "TXUcdrwtPNiS7z795RbzBXzNYRADeVtF5uz4aovLo/M=";
|
2023-07-04 03:30:33 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|