Change:
<ins> { stdenv , fetchFromGitHub , lib , makeWrapper , autoreconfHook , buildEnv , python3 , fontforge , potrace , texlive }: /* To use with a texlive distribution, ensure that the desired fonts and the packages kpathsea, t1utils, metafont are available at runtime. Possible overrides: - potrace = autotrace - fontforge = ghostscript (limited functionality) - fontforge = null (limited functionality) */ let self = stdenv.mkDerivation rec { pname = "mftrace"; version = "1.2.20"; # https://lilypond.org/download/sources/mftrace/mftrace-1.2.20.tar.gz # is incomplete, fetch repo and use autoconf instead # see https://github.com/hanwen/mftrace/issues/13 src = fetchFromGitHub { owner = "hanwen"; repo = "mftrace"; rev = "release/${version}"; sha256 = "02ik25aczkbi10jrjlnxby3fmixxrwm2k5r4fkfif3bjfym7nqbc"; }; nativeBuildInputs = [ makeWrapper autoreconfHook python3 potrace ]; buildInputs = [ fontforge potrace ]; postInstall = '' wrapProgram $out/bin/mftrace --prefix PATH : ${lib.makeBinPath buildInputs} ''; # experimental texlive.combine support # (note that only the bin/ folder will be combined into texlive) passthru.tlType = "bin"; passthru.pkgs = [ self ] ++ (with texlive; kpathsea.pkgs ++ t1utils.pkgs ++ metafont.pkgs); meta = with lib; { description = "Scalable PostScript Fonts for MetaFont"; longDescription = '' mftrace is a small Python program that lets you trace a TeX bitmap font into a PFA or PFB font (A PostScript Type1 Scalable Font) or TTF (TrueType) font. ''; homepage = "https://lilypond.org/mftrace/"; license = with licenses; [ gpl2Only mit ]; maintainers = with maintainers; [ xworld21 ]; platforms = platforms.all; }; }; in self </ins>

Discussion:
Project description From the project website: "mftrace is a small Python program that lets you trace a TeX bitmap font into a PFA or PFB font (A PostScript Type1 Scalable Font) or TTF (TrueType) font." I came across it while trying to compile the . It doesn't seem to be used a lot, but it seems nice to have, and I have just packaged it for myself anyway. Working packaging attempt , just two notes: mftrace needs texlive at runtime only (it finds fonts via and uses metafont binaries), I have left it out so that it works with any installed texlive, but it's also broken if there is none, is that ok? I have not a maintainer! Metadata homepage URL: source URL: licenses: gpl2-only, free platforms: unix, windows (judging from the source – I have not tested it)
If it only needs a small texlive without many packages, it might be worth adding that to . Is there a part that's licensed under GPLv2? Besides that, you should use . Then nothing should stop a pull request from being merged.
Ok, I know which binaries are needed, I can try. If it doesn't work out, I'll add a comment. All of the python files are GPLv2 without the "any later version" text and COPYING is GPLv2. The C file has a custom free license from . The README claims that is licensed under the GPL (no version) with a generic link, but it's also a 15 years old line... I would err on the side of . Ah, sure! I suppose I can add myself to the maintainer list if nobody wants it. This should be a very low maintenance package anyway. I'll send a PR in a few days, after I have time to sort out the runtime binaries issue.
PR is up, with a few tweaks compared to my first attempt. Thanks for the pointers