install my own fonts to the nix store
This commit is contained in:
parent
976017ac80
commit
f640e44fd5
3 changed files with 25 additions and 4 deletions
20
packages/cullmann-fonts.nix
Normal file
20
packages/cullmann-fonts.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue