-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
/
package.nix
58 lines (48 loc) · 1.06 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
lib,
fetchFromGitHub,
fira-math,
python3,
stdenvNoCC,
}:
let
pname = "fira-math";
date = "2023-10-09";
version = "0.3.4-unstable-${date}";
in
stdenvNoCC.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "firamath";
repo = "firamath";
rev = "4bd85bc943eb6a194cfc090f7e194aa27d8f8419";
hash = "sha256-1skakzdvzf7nX2un7b9aCSj1pzBAQuueZEU7B1nARa4=";
};
nativeBuildInputs = [
(python3.withPackages (
ps: with ps; [
fontmake
fonttools
glyphslib
toml
]
))
];
buildPhase = ''
runHook preBuild
python scripts/build.py
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D "build/"*.otf -t "$out/share/fonts/opentype/"
runHook postInstall
'';
meta = with lib; {
description = "Math font with Unicode math support based on FiraSans and FiraGO";
homepage = "https://github.com/firamath/firamath";
license = licenses.ofl;
maintainers = [ maintainers.loicreynier ];
platforms = platforms.all;
};
}