0474b4f148
svn path=/nixpkgs/trunk/; revision=14662
32 lines
800 B
Nix
32 lines
800 B
Nix
{ stdenv, fetchurl, Xaw3d, ghostscriptX }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gv-3.6.7";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gv/${name}.tar.gz";
|
|
sha256 = "1cdkkxamsicpk0jdbrkjpxhcsrx0b82kqgrc4j407q2gc3qs8wgf";
|
|
};
|
|
|
|
buildInputs = [ Xaw3d ghostscriptX ];
|
|
|
|
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+";
|
|
};
|
|
}
|