mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
feat: tocharian font
This commit is contained in:
@@ -21,6 +21,7 @@ in {
|
|||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
gfs-fonts = pkgs.callPackage <niveum/packages/gfs-fonts.nix> {};
|
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> { };
|
iolanguage = pkgs.callPackage <niveum/packages/iolanguage.nix> { };
|
||||||
ix = pkgs.callPackage <niveum/packages/ix.nix> { };
|
ix = pkgs.callPackage <niveum/packages/ix.nix> { };
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
jetbrains-mono
|
jetbrains-mono
|
||||||
twemoji-color-font
|
twemoji-color-font
|
||||||
joypixels
|
joypixels
|
||||||
|
tocharian-font
|
||||||
];
|
];
|
||||||
fontconfig.defaultFonts = {
|
fontconfig.defaultFonts = {
|
||||||
monospace = [ "JetBrains Mono" "JoyPixels" ];
|
monospace = [ "JetBrains Mono" "JoyPixels" ];
|
||||||
|
|||||||
24
packages/tocharian-font.nix
Normal file
24
packages/tocharian-font.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user