mftrace: init at 1.2.20

+65
+63
pkgs/tools/typesetting/tex/mftrace/default.nix
··· 1 + { stdenv 2 + , fetchFromGitHub 3 + , lib 4 + , makeWrapper 5 + , autoreconfHook 6 + , buildEnv 7 + , python3 8 + , fontforge 9 + , potrace 10 + , texlive 11 + }: 12 + 13 + /* 14 + To use with a texlive distribution, ensure that the desired fonts and 15 + the packages kpathsea, t1utils, metafont are available at runtime. 16 + 17 + Possible overrides: 18 + - potrace = autotrace 19 + - fontforge = ghostscript (limited functionality) 20 + - fontforge = null (limited functionality) 21 + */ 22 + 23 + let self = stdenv.mkDerivation rec { 24 + pname = "mftrace"; 25 + version = "1.2.20"; 26 + 27 + # https://lilypond.org/download/sources/mftrace/mftrace-1.2.20.tar.gz 28 + # is incomplete, fetch repo and use autoconf instead 29 + # see https://github.com/hanwen/mftrace/issues/13 30 + src = fetchFromGitHub { 31 + owner = "hanwen"; 32 + repo = "mftrace"; 33 + rev = "release/${version}"; 34 + sha256 = "02ik25aczkbi10jrjlnxby3fmixxrwm2k5r4fkfif3bjfym7nqbc"; 35 + }; 36 + 37 + nativeBuildInputs = [ makeWrapper autoreconfHook python3 potrace ]; 38 + 39 + buildInputs = [ fontforge potrace ]; 40 + 41 + postInstall = '' 42 + wrapProgram $out/bin/mftrace --prefix PATH : ${lib.makeBinPath buildInputs} 43 + ''; 44 + 45 + # experimental texlive.combine support 46 + # (note that only the bin/ folder will be combined into texlive) 47 + passthru.tlType = "bin"; 48 + passthru.pkgs = [ self ] ++ 49 + (with texlive; kpathsea.pkgs ++ t1utils.pkgs ++ metafont.pkgs); 50 + 51 + meta = with lib; { 52 + description = "Scalable PostScript Fonts for MetaFont"; 53 + longDescription = '' 54 + mftrace is a small Python program that lets you trace a TeX bitmap 55 + font into a PFA or PFB font (A PostScript Type1 Scalable Font) or 56 + TTF (TrueType) font. 57 + ''; 58 + homepage = "https://lilypond.org/mftrace/"; 59 + license = with licenses; [ gpl2Only mit ]; 60 + maintainers = with maintainers; [ xworld21 ]; 61 + platforms = platforms.all; 62 + }; 63 + }; in self
+2
pkgs/top-level/all-packages.nix
··· 6039 6039 6040 6040 mesa-demos = callPackage ../tools/graphics/mesa-demos { }; 6041 6041 6042 + mftrace = callPackage ../tools/typesetting/tex/mftrace { }; 6043 + 6042 6044 mhonarc = perlPackages.MHonArc; 6043 6045 6044 6046 minergate = callPackage ../applications/misc/minergate { };