mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
25 lines
688 B
Nix
25 lines
688 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 ];
|
|
};
|
|
}
|