-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278225 from loicreynier/fira-math-init-at-0.3.4
fira-math: init at 0.3.4
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ 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; | ||
}; | ||
} |