2022-12-03 14:00:18 +00:00
|
|
|
{ lib, stdenv, fetchurl, libXext, Xaw3d, ghostscriptX, perl, pkg-config, libiconv }:
|
2007-08-14 14:09:58 +00:00
|
|
|
|
2021-11-07 20:29:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gv";
|
|
|
|
version = "3.7.4";
|
2007-08-14 14:09:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "mirror://gnu/gv/gv-${version}.tar.gz";
|
2013-03-18 10:36:16 +00:00
|
|
|
sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
|
2007-08-14 14:09:58 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [
|
2018-04-19 23:20:05 +00:00
|
|
|
"--enable-SIGCHLD-fallback"
|
|
|
|
];
|
|
|
|
|
2022-09-25 02:49:25 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-04-19 23:20:05 +00:00
|
|
|
buildInputs = [
|
2022-12-03 14:00:18 +00:00
|
|
|
libXext
|
2018-04-19 23:20:05 +00:00
|
|
|
Xaw3d
|
|
|
|
ghostscriptX
|
|
|
|
perl
|
2021-01-15 05:42:41 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2018-04-19 23:20:05 +00:00
|
|
|
libiconv
|
|
|
|
];
|
2010-01-08 09:31:01 +00:00
|
|
|
|
2009-03-23 15:42:14 +00:00
|
|
|
patchPhase = ''
|
2010-01-08 09:31:01 +00:00
|
|
|
sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
|
|
|
|
sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
|
2009-01-12 11:12:17 +00:00
|
|
|
'';
|
2007-08-14 14:09:58 +00:00
|
|
|
|
2008-06-01 16:51:03 +00:00
|
|
|
doCheck = true;
|
2008-01-30 19:49:42 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/gv/";
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "PostScript/PDF document viewer";
|
2009-03-23 15:42:14 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU gv allows users to view and navigate through PostScript and
|
|
|
|
PDF documents on an X display by providing a graphical user
|
|
|
|
interface for the Ghostscript interpreter.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2007-08-14 14:09:58 +00:00
|
|
|
}
|