install my own fonts to the nix store

This commit is contained in:
Christoph Cullmann 2024-09-01 17:22:32 +02:00
parent 976017ac80
commit f640e44fd5
No known key found for this signature in database
3 changed files with 25 additions and 4 deletions

View file

@ -0,0 +1,20 @@
{
stdenvNoCC,
lib,
}:
stdenvNoCC.mkDerivation {
pname = "cullmann-fonts";
version = "1.0";
src = /nix/data/nixos/secret/fonts;
installPhase = ''
mkdir -p $out/share/fonts/truetype/
cp -r $src/*.{ttf,otf} $out/share/fonts/truetype/
'';
meta = with lib; {
description = "Cullmann's Fonts";
homepage = "https://cullmann.io/";
platforms = platforms.all;
};
}