2010-06-10 23:52:34 +02:00
|
|
|
{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }:
|
2007-08-14 16:09:58 +02:00
|
|
|
|
2008-06-01 18:51:03 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-06-10 23:52:34 +02:00
|
|
|
name = "gv-3.7.1";
|
2007-08-14 16:09:58 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-01 18:51:03 +02:00
|
|
|
url = "mirror://gnu/gv/${name}.tar.gz";
|
2010-06-10 23:52:34 +02:00
|
|
|
sha256 = "0541p3jlxvvw4136250rizybrl8sqyg03avy0w4r4kiw9w5f31ys";
|
2007-08-14 16:09:58 +02:00
|
|
|
};
|
|
|
|
|
2010-06-10 23:52:34 +02:00
|
|
|
buildInputs = [ Xaw3d ghostscriptX perl ];
|
2010-01-08 10:31:01 +01:00
|
|
|
|
2009-03-23 16:42:14 +01:00
|
|
|
patchPhase = ''
|
2010-01-08 10:31:01 +01:00
|
|
|
sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
|
|
|
|
sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
|
2009-01-12 12:12:17 +01:00
|
|
|
'';
|
2007-08-14 16:09:58 +02:00
|
|
|
|
2008-06-01 18:51:03 +02:00
|
|
|
doCheck = true;
|
2008-01-30 20:49:42 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-06-01 18:51:03 +02:00
|
|
|
homepage = http://www.gnu.org/software/gv/;
|
|
|
|
description = "GNU gv, a PostScript/PDF document viewer";
|
2009-03-23 16:42:14 +01: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 12:12:17 +01:00
|
|
|
license = "GPLv3+";
|
2010-01-08 10:31:01 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2008-01-30 20:49:42 +01:00
|
|
|
};
|
2007-08-14 16:09:58 +02:00
|
|
|
}
|