summary refs log tree commit diff
path: root/pkgs/applications/misc/gv/default.nix
blob: 109c3d8102f932ab668d8d9601b1adfde502bc08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, Xaw3d, ghostscriptX }:

stdenv.mkDerivation rec {
  name = "gv-3.6.6";

  src = fetchurl {
    url = "mirror://gnu/gv/${name}.tar.gz";
    sha256 = "08xnjg5nimrksn2fl18589ncb26vaabbypmvay8hh8psjsks5683";
  };

  buildInputs = [ Xaw3d ghostscriptX ];
  
  postConfigure = ''
    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";
    license = "GPLv3+";
  };
}