interalia shavian font

This commit is contained in:
Tristan 2024-02-01 13:29:51 +00:00
parent 30515ad6d5
commit eabb4efb99
2 changed files with 39 additions and 0 deletions

View file

@ -191,7 +191,14 @@ in {
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
}; };
nixpkgs.overlays = [
(final: prev: {
interalia = prev.callPackage ../pkgs/interalia.nix {};
})
];
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
nerdfonts nerdfonts
interalia
]; ];
} }

32
pkgs/interalia.nix Normal file
View file

@ -0,0 +1,32 @@
{
lib,
stdenvNoCC,
fetchzip,
}:
stdenvNoCC.mkDerivation {
pname = "interalia";
version = "0.001";
src = fetchzip {
url = "https://github.com/Shavian-info/interalia/releases/download/v.0.0001-interalia-alpha/InterAlia-0.001-text-37ab20767a.zip";
stripRoot = false;
hash = "sha256-qSILVWUrWEDjXdLkMUzUvbt27csDvODnWfdOKk2faPk=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/{truetype,opentype}
cp "Inter Alia Desktop/"*.otf $out/share/fonts/opentype
cp "Inter Alia Variable/"*.ttf $out/share/fonts/truetype
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/Shavian-info/interalia";
description = "Inter Alia is an expanded version of the Inter font family";
license = licenses.ofl;
platforms = platforms.all;
};
}