2021-01-17 05:09:27 +03:00
|
|
|
{ lib, stdenv, fetchurl, Xaw3d, ghostscriptX, perl, pkg-config, libiconv }:
|
2007-08-14 18:09:58 +04:00
|
|
|
|
2011-12-05 23:58:19 +04:00
|
|
|
let
|
2013-03-18 14:36:16 +04:00
|
|
|
name = "gv-3.7.4";
|
2011-12-05 23:58:19 +04:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2007-08-14 18:09:58 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-01 20:51:03 +04:00
|
|
|
url = "mirror://gnu/gv/${name}.tar.gz";
|
2013-03-18 14:36:16 +04:00
|
|
|
sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
|
2007-08-14 18:09:58 +04:00
|
|
|
};
|
|
|
|
|
2021-01-15 08:42:41 +03:00
|
|
|
configureFlags = lib.optionals stdenv.isDarwin [
|
2018-04-20 02:20:05 +03:00
|
|
|
"--enable-SIGCHLD-fallback"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
Xaw3d
|
|
|
|
ghostscriptX
|
|
|
|
perl
|
2021-01-17 05:09:27 +03:00
|
|
|
pkg-config
|
2021-01-15 08:42:41 +03:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2018-04-20 02:20:05 +03:00
|
|
|
libiconv
|
|
|
|
];
|
2010-01-08 12:31:01 +03:00
|
|
|
|
2009-03-23 18:42:14 +03:00
|
|
|
patchPhase = ''
|
2010-01-08 12:31:01 +03:00
|
|
|
sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
|
|
|
|
sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
|
2009-01-12 14:12:17 +03:00
|
|
|
'';
|
2007-08-14 18:09:58 +04:00
|
|
|
|
2008-06-01 20:51:03 +04:00
|
|
|
doCheck = true;
|
2008-01-30 22:49:42 +03:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://www.gnu.org/software/gv/";
|
2014-08-24 18:21:08 +04:00
|
|
|
description = "PostScript/PDF document viewer";
|
2009-03-23 18:42:14 +03: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 08:42:41 +03:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2013-08-17 01:44:33 +04:00
|
|
|
maintainers = [ ];
|
2021-01-15 08:42:41 +03:00
|
|
|
platforms = lib.platforms.unix;
|
2008-01-30 22:49:42 +03:00
|
|
|
};
|
2007-08-14 18:09:58 +04:00
|
|
|
}
|