nixpkgs/pkgs/applications/graphics/fig2dev/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
952 B
Nix
Raw Normal View History

2021-02-03 05:06:32 +01:00
{ lib
, stdenv
, fetchurl
, ghostscript
, libpng
, makeWrapper
, coreutils
, bc
, gnugrep
, gawk
, gnused
}:
stdenv.mkDerivation rec {
2019-08-13 23:52:01 +02:00
pname = "fig2dev";
version = "3.2.8b";
src = fetchurl {
url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
sha256 = "1jv8rg71dsy00lpg434r5zqs5qrg8mxqvv2gpcjjvmzsm551d2j1";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ libpng ];
GSEXE="${ghostscript}/bin/gs";
2022-01-24 03:21:09 +01:00
configureFlags = [ "--enable-transfig" ];
postInstall = ''
wrapProgram $out/bin/fig2ps2tex \
--set PATH ${lib.makeBinPath [ coreutils bc gnugrep gawk ]}
wrapProgram $out/bin/pic2tpic \
--set PATH ${lib.makeBinPath [ gnused ]}
'';
meta = with lib; {
description = "Tool to convert Xfig files to other formats";
homepage = "http://mcj.sourceforge.net/";
license = licenses.xfig;
2022-01-24 03:03:45 +01:00
platforms = platforms.unix;
maintainers = with maintainers; [ lesuisse ];
};
}