2010-06-10 22:52:34 +01:00
|
|
|
{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }:
|
2007-08-14 15:09:58 +01:00
|
|
|
|
2011-12-05 19:58:19 +00:00
|
|
|
let
|
|
|
|
name = "gv-3.7.3";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2007-08-14 15:09:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-01 17:51:03 +01:00
|
|
|
url = "mirror://gnu/gv/${name}.tar.gz";
|
2011-12-05 19:58:19 +00:00
|
|
|
sha256 = "ee01ba96e3a5c319eb4658357372a118dbb0e231891b360edecbdebd449d1c2b";
|
2007-08-14 15:09:58 +01:00
|
|
|
};
|
|
|
|
|
2010-06-10 22:52:34 +01:00
|
|
|
buildInputs = [ Xaw3d ghostscriptX perl ];
|
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 15:09:58 +01:00
|
|
|
|
2008-06-01 17:51:03 +01:00
|
|
|
doCheck = true;
|
2008-01-30 19:49:42 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-06-01 17:51:03 +01:00
|
|
|
homepage = http://www.gnu.org/software/gv/;
|
|
|
|
description = "GNU gv, a 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.
|
|
|
|
'';
|
|
|
|
|
2009-01-12 11:12:17 +00:00
|
|
|
license = "GPLv3+";
|
2010-01-08 09:31:01 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2007-08-14 15:09:58 +01:00
|
|
|
}
|