mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
30 lines
693 B
Nix
30 lines
693 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
mupdf,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "tocharian-font";
|
|
version = "unstable-2022-01-11";
|
|
src = fetchurl {
|
|
url = "https://unicode.org/L2/L2015/15236-tocharian.pdf";
|
|
sha256 = "08bzkva9a6b2cfl38p9m22b1cf6yv27xsw6nrvq5ly5nffjm32hv";
|
|
};
|
|
dontUnpack = true;
|
|
buildInputs = [mupdf];
|
|
buildPhase = ''
|
|
mutool extract $src
|
|
'';
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts/truetype
|
|
install font-0021.ttf $out/share/fonts/truetype/Tocharian.ttf
|
|
'';
|
|
meta = with lib; {
|
|
description = "Tocharian font by Lee Wilson";
|
|
license = licenses.unfree;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [kmein];
|
|
};
|
|
}
|