16 stdenv.mkDerivation rec {
21 url = "mirror://sourceforge/mcj/xfig-${version}.tar.xz";
22 hash = "sha256-E+2dBNG7wt7AnafvSc7sJ4OC0pD2zZJkdMLy0Bb+wvc=";
25 nativeBuildInputs = [ imagemagick makeWrapper ];
38 substituteInPlace src/main.c --replace '"fig2dev"' '"${fig2dev}/bin/fig2dev"'
39 substituteInPlace xfig.desktop --replace "/usr/bin/" "$out/bin/"
43 mkdir -p $out/share/X11/app-defaults
44 cp app-defaults/* $out/share/X11/app-defaults
46 wrapProgram $out/bin/xfig \
47 --set XAPPLRESDIR $out/share/X11/app-defaults
49 mkdir -p $out/share/icons/hicolor/{16x16,22x22,48x48,64x64}/apps
51 for dimension in 16x16 22x22 48x48; do
52 convert doc/html/images/xfig-logo.png -geometry $dimension\
53 $out/share/icons/hicolor/16x16/apps/xfig.png
55 install doc/html/images/xfig-logo.png \
56 $out/share/icons/hicolor/64x64/apps/xfig.png
59 enableParallelBuilding = true;
62 changelog = "https://sourceforge.net/p/mcj/xfig/ci/${version}/tree/CHANGES";
63 description = "Interactive drawing tool for X11";
66 Note that you need to have the <literal>netpbm</literal> tools
67 in your path to export bitmaps.
69 inherit (fig2dev.meta) license homepage platforms maintainers;