14 stdenv.mkDerivation rec {
19 url = "mirror://sourceforge/mcj/fig2dev-${version}.tar.xz";
20 hash = "sha256-FeJGyNE8xy3iXggxQDitUM59Le+pzxr8Fy/X9ZMgkLE=";
23 nativeBuildInputs = [ makeWrapper ];
24 buildInputs = [ libpng ];
26 GSEXE="${ghostscript}/bin/gs";
28 configureFlags = [ "--enable-transfig" ];
31 wrapProgram $out/bin/fig2ps2tex \
32 --set PATH ${lib.makeBinPath [ coreutils bc gnugrep gawk ]}
33 wrapProgram $out/bin/pic2tpic \
34 --set PATH ${lib.makeBinPath [ gnused ]}
38 description = "Tool to convert Xfig files to other formats";
39 homepage = "https://mcj.sourceforge.net/";
40 license = licenses.xfig;
41 platforms = platforms.unix;
42 maintainers = with maintainers; [ lesuisse ];