1 { lib, stdenv, fetchurl, libXext, Xaw3d, ghostscriptX, perl, pkg-config, libiconv }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/gv/gv-${version}.tar.gz";
9 sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
12 configureFlags = lib.optionals stdenv.isDarwin [
13 "--enable-SIGCHLD-fallback"
16 nativeBuildInputs = [ pkg-config ];
22 ] ++ lib.optionals stdenv.isDarwin [
27 sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
28 sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
34 homepage = "https://www.gnu.org/software/gv/";
35 description = "PostScript/PDF document viewer";
38 GNU gv allows users to view and navigate through PostScript and
39 PDF documents on an X display by providing a graphical user
40 interface for the Ghostscript interpreter.
43 license = lib.licenses.gpl3Plus;
45 platforms = lib.platforms.unix;