nixpkgs/pkgs/applications/misc/gv/default.nix
Ludovic Courtès ccfa69e8b6 GNU gv 3.7.1.
svn path=/nixpkgs/trunk/; revision=22216
2010-06-10 21:52:34 +00:00

35 lines
926 B
Nix

{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }:
stdenv.mkDerivation rec {
name = "gv-3.7.1";
src = fetchurl {
url = "mirror://gnu/gv/${name}.tar.gz";
sha256 = "0541p3jlxvvw4136250rizybrl8sqyg03avy0w4r4kiw9w5f31ys";
};
buildInputs = [ Xaw3d ghostscriptX perl ];
patchPhase = ''
sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
'';
doCheck = true;
meta = {
homepage = http://www.gnu.org/software/gv/;
description = "GNU gv, a PostScript/PDF document viewer";
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.
'';
license = "GPLv3+";
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}