2010-06-10 14:52:34 -07:00
|
|
|
{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }:
|
2007-08-14 07:09:58 -07:00
|
|
|
|
2011-12-05 11:58:19 -08:00
|
|
|
let
|
2013-03-18 03:36:16 -07:00
|
|
|
name = "gv-3.7.4";
|
2011-12-05 11:58:19 -08:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2007-08-14 07:09:58 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-01 09:51:03 -07:00
|
|
|
url = "mirror://gnu/gv/${name}.tar.gz";
|
2013-03-18 03:36:16 -07:00
|
|
|
sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
|
2007-08-14 07:09:58 -07:00
|
|
|
};
|
|
|
|
|
2010-06-10 14:52:34 -07:00
|
|
|
buildInputs = [ Xaw3d ghostscriptX perl ];
|
2010-01-08 01:31:01 -08:00
|
|
|
|
2009-03-23 08:42:14 -07:00
|
|
|
patchPhase = ''
|
2010-01-08 01:31:01 -08:00
|
|
|
sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
|
|
|
|
sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
|
2009-01-12 03:12:17 -08:00
|
|
|
'';
|
2007-08-14 07:09:58 -07:00
|
|
|
|
2008-06-01 09:51:03 -07:00
|
|
|
doCheck = true;
|
2008-01-30 11:49:42 -08:00
|
|
|
|
|
|
|
meta = {
|
2008-06-01 09:51:03 -07:00
|
|
|
homepage = http://www.gnu.org/software/gv/;
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "PostScript/PDF document viewer";
|
2009-03-23 08:42:14 -07: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.
|
|
|
|
'';
|
|
|
|
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-08-16 14:44:33 -07:00
|
|
|
maintainers = [ ];
|
2010-01-08 01:31:01 -08:00
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2008-01-30 11:49:42 -08:00
|
|
|
};
|
2007-08-14 07:09:58 -07:00
|
|
|
}
|