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

49 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-15 06:42:41 +01:00
{ lib, stdenv, fetchurl, Xaw3d, ghostscriptX, perl, pkgconfig, libiconv }:
let
2013-03-18 11:36:16 +01:00
name = "gv-3.7.4";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://gnu/gv/${name}.tar.gz";
2013-03-18 11:36:16 +01:00
sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
};
2021-01-15 06:42:41 +01:00
configureFlags = lib.optionals stdenv.isDarwin [
2018-04-20 01:20:05 +02:00
"--enable-SIGCHLD-fallback"
];
buildInputs = [
Xaw3d
ghostscriptX
perl
pkgconfig
2021-01-15 06:42:41 +01:00
] ++ lib.optionals stdenv.isDarwin [
2018-04-20 01:20:05 +02:00
libiconv
];
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 = "https://www.gnu.org/software/gv/";
description = "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.
'';
2021-01-15 06:42:41 +01:00
license = lib.licenses.gpl3Plus;
2013-08-16 23:44:33 +02:00
maintainers = [ ];
2021-01-15 06:42:41 +01:00
platforms = lib.platforms.unix;
};
}