lol
at v192 37 lines 927 B view raw
1{ stdenv, fetchurl, Xaw3d, ghostscriptX, perl }: 2 3let 4 name = "gv-3.7.4"; 5in 6stdenv.mkDerivation { 7 inherit name; 8 9 src = fetchurl { 10 url = "mirror://gnu/gv/${name}.tar.gz"; 11 sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1"; 12 }; 13 14 buildInputs = [ Xaw3d ghostscriptX perl ]; 15 16 patchPhase = '' 17 sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in 18 sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c 19 ''; 20 21 doCheck = true; 22 23 meta = { 24 homepage = http://www.gnu.org/software/gv/; 25 description = "PostScript/PDF document viewer"; 26 27 longDescription = '' 28 GNU gv allows users to view and navigate through PostScript and 29 PDF documents on an X display by providing a graphical user 30 interface for the Ghostscript interpreter. 31 ''; 32 33 license = stdenv.lib.licenses.gpl3Plus; 34 maintainers = [ ]; 35 platforms = stdenv.lib.platforms.gnu; # arbitrary choice 36 }; 37}