nixpkgs/pkgs/applications/misc/gv/default.nix

38 lines
917 B
Nix
Raw Normal View History

{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }:
let
2013-03-18 10:36:16 +00:00
name = "gv-3.7.4";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://gnu/gv/${name}.tar.gz";
2013-03-18 10:36:16 +00:00
sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
};
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+";
2013-08-16 22:44:33 +01:00
maintainers = [ ];
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
};
}