lol

treewide: Replace transfig with fig2dev

Reasons:

- transfig never get upstream update since it was added to nixpkgs 2006,
according to [fig2dev Debian changelog][1], upstream maintainership
was taken over at 2016, and renamed to fig2dev.

- [Debian][2], [ArchLinux][3], [HomeBrew][4] all use fig2dev to replace
transfig.

- transfig builds [failed][5] on aarch64-darwin, fig2dev builds fine.

- One less package to maintain.

[1]: https://salsa.debian.org/debian/fig2dev/-/blob/debian/1%253.2.6_beta-1/debian/changelog
[2]: https://packages.debian.org/bullseye/transfig
[3]: https://archlinux.org/packages/community/x86_64/fig2dev/
[4]: https://formulae.brew.sh/formula/fig2dev
[5]: https://hydra.nixos.org/build/163404782/nixlog/2

+13 -16
+2 -2
pkgs/applications/science/misc/simgrid/default.nix
··· 3 3 # Lua 5.3 needed and not available now 4 4 #, luaSupport ? false, lua5 5 5 , fortranSupport ? false, gfortran 6 - , buildDocumentation ? false, transfig, ghostscript, doxygen 6 + , buildDocumentation ? false, fig2dev, ghostscript, doxygen 7 7 , buildJavaBindings ? false, openjdk 8 8 , modelCheckingSupport ? false, libunwind, libevent, elfutils # Inside elfutils: libelf and libdw 9 9 , debug ? false ··· 40 40 nativeBuildInputs = [ cmake perl python3 valgrind ] 41 41 ++ optionals fortranSupport [ gfortran ] 42 42 ++ optionals buildJavaBindings [ openjdk ] 43 - ++ optionals buildDocumentation [ transfig ghostscript doxygen ] 43 + ++ optionals buildDocumentation [ fig2dev ghostscript doxygen ] 44 44 ++ optionals modelCheckingSupport [ libunwind libevent elfutils ]; 45 45 46 46 #buildInputs = optional luaSupport lua5;
+2 -2
pkgs/applications/virtualization/xen/generic.nix
··· 18 18 19 19 # Documentation 20 20 # python2Packages.markdown 21 - , transfig, ghostscript, texinfo, pandoc 21 + , fig2dev, ghostscript, texinfo, pandoc 22 22 23 23 , binutils-unwrapped 24 24 ··· 81 81 python2Packages.wrapPython 82 82 83 83 # Documentation 84 - python2Packages.markdown transfig ghostscript texinfo pandoc 84 + python2Packages.markdown fig2dev ghostscript texinfo pandoc 85 85 86 86 # Others 87 87 ] ++ (concatMap (x: x.buildInputs or []) (attrValues config.xenfiles))
+2 -2
pkgs/development/tools/parsing/ragel/default.nix
··· 1 - { lib, stdenv, fetchurl, transfig, tex, ghostscript, colm 1 + { lib, stdenv, fetchurl, fig2dev, tex, ghostscript, colm 2 2 , build-manual ? false 3 3 }: 4 4 ··· 13 13 inherit sha256; 14 14 }; 15 15 16 - buildInputs = lib.optional build-manual [ transfig ghostscript tex ]; 16 + buildInputs = lib.optional build-manual [ fig2dev ghostscript tex ]; 17 17 18 18 preConfigure = lib.optionalString build-manual '' 19 19 sed -i "s/build_manual=no/build_manual=yes/g" DIST
+2 -2
pkgs/tools/typesetting/skribilo/default.nix
··· 10 10 , makeWrapper 11 11 , pkg-config 12 12 , ploticus 13 - , transfig 13 + , fig2dev 14 14 , enableEmacs ? false, emacs 15 15 , enableLout ? true, lout 16 16 , enableTex ? true, tex ··· 39 39 guile-reader 40 40 imagemagick 41 41 ploticus 42 - transfig 42 + fig2dev 43 43 ] 44 44 ++ optional enableEmacs emacs 45 45 ++ optional enableLout lout
+4 -4
pkgs/tools/typesetting/tex/dblatex/default.nix
··· 1 1 { lib, stdenv, fetchurl, python3, libxslt, texlive 2 - , enableAllFeatures ? false, imagemagick ? null, transfig ? null, inkscape ? null, fontconfig ? null, ghostscript ? null 2 + , enableAllFeatures ? false, imagemagick ? null, fig2dev ? null, inkscape ? null, fontconfig ? null, ghostscript ? null 3 3 4 4 , tex ? texlive.combine { # satisfy all packages that ./configure mentions 5 5 inherit (texlive) scheme-basic epstopdf anysize appendix changebar ··· 15 15 16 16 assert enableAllFeatures -> 17 17 imagemagick != null && 18 - transfig != null && 18 + fig2dev != null && 19 19 inkscape != null && 20 20 fontconfig != null && 21 21 ghostscript != null; ··· 30 30 }; 31 31 32 32 buildInputs = [ python3 libxslt tex ] 33 - ++ lib.optionals enableAllFeatures [ imagemagick transfig ]; 33 + ++ lib.optionals enableAllFeatures [ imagemagick fig2dev ]; 34 34 35 35 # TODO: dblatex tries to execute texindy command, but nixpkgs doesn't have 36 36 # that yet. In Ubuntu, texindy is a part of the xindy package. ··· 49 49 -e 's|"fc-match"|"${fontconfig.bin}/bin/fc-match"|g' \ 50 50 -e 's|"fc-list"|"${fontconfig.bin}/bin/fc-list"|g' \ 51 51 -e 's|cmd = "inkscape|cmd = "${inkscape}/bin/inkscape|g' \ 52 - -e 's|cmd = "fig2dev|cmd = "${transfig}/bin/fig2dev|g' \ 52 + -e 's|cmd = "fig2dev|cmd = "${fig2dev}/bin/fig2dev|g' \ 53 53 -e 's|cmd = \["ps2pdf|cmd = ["${ghostscript}/bin/ps2pdf|g' \ 54 54 -e 's|cmd = "convert|cmd = "${imagemagick.out}/bin/convert|g' \ 55 55 -i "$file"
+1
pkgs/top-level/aliases.nix
··· 1188 1188 torch-repl = throw "torch-repl has been removed, as the upstream project has been abandoned"; # Added 2020-03-28 1189 1189 torchPackages = throw "torchPackages has been removed, as the upstream project has been abandoned"; # Added 2020-03-28 1190 1190 trang = jing-trang; # Added 2018-04-25 1191 + transfig = fig2dev; # Added 2022-02-15 1191 1192 transmission-remote-cli = "transmission-remote-cli has been removed, as the upstream project has been abandoned. Please use tremc instead"; # Added 2020-10-14 1192 1193 transmission_gtk = transmission-gtk; # Added 2018-01-06 1193 1194 transmission_remote_gtk = transmission-remote-gtk; # Added 2018-01-06
-4
pkgs/top-level/all-packages.nix
··· 10952 10952 10953 10953 ts = callPackage ../tools/system/ts { }; 10954 10954 10955 - transfig = callPackage ../tools/graphics/transfig { 10956 - libpng = libpng12; 10957 - }; 10958 - 10959 10955 ttmkfdir = callPackage ../tools/misc/ttmkfdir { }; 10960 10956 10961 10957 ttwatch = callPackage ../tools/misc/ttwatch { };