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