1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: tocharian font

This commit is contained in:
2022-01-11 19:56:31 +01:00
parent 2aa19c28bd
commit 65532d7d47
3 changed files with 26 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ in {
allowUnfree = true;
packageOverrides = pkgs: {
gfs-fonts = pkgs.callPackage <niveum/packages/gfs-fonts.nix> {};
tocharian-font = pkgs.callPackage <niveum/packages/tocharian-font.nix> {};
iolanguage = pkgs.callPackage <niveum/packages/iolanguage.nix> { };
ix = pkgs.callPackage <niveum/packages/ix.nix> { };
};

View File

@@ -30,6 +30,7 @@
jetbrains-mono
twemoji-color-font
joypixels
tocharian-font
];
fontconfig.defaultFonts = {
monospace = [ "JetBrains Mono" "JoyPixels" ];

View File

@@ -0,0 +1,24 @@
{ 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 ];
};
}