packages: Add aleo-fonts

I've been using this for a few days now and Aleo is my new favorite
serif font.
This commit is contained in:
Donovan Glover 2024-02-08 22:33:47 -05:00
parent 56475023ed
commit 00a246c9c6
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 34 additions and 0 deletions

32
packages/aleo-fonts.nix Normal file
View File

@ -0,0 +1,32 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "aleo-fonts";
version = "unstable-2023-06-03";
src = fetchFromGitHub {
owner = "AlessioLaiso";
repo = "aleo";
rev = "ce875e48d9983031648e87f38b7a269f4fbf5eb5";
hash = "sha256-HSxP5/sLHQTujBVt1u93625EXEc42lxpt8W1//6ngWM=";
};
installPhase = ''
runHook preInstall
install -Dm644 fonts/variable/*.ttf -t $out/share/fonts/truetype/AleoFonts
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/AlessioLaiso/aleo";
description = "Slab serif typeface designed by Alessio Laiso";
platforms = platforms.all;
maintainers = with maintainers; [ donovanglover ];
license = licenses.ofl;
};
})

View File

@ -5,9 +5,11 @@
"/share/backgrounds"
"/share/eww"
"/share/thumbnailers"
"/share/fonts"
];
environment.systemPackages = with pkgs; [
(callPackage ./aleo-fonts.nix { })
(callPackage ./fluent-icons.nix { })
(callPackage ./osu-backgrounds.nix { })
(callPackage ./pnpm-shell-completion.nix { })