add customfonts
custom package
This commit is contained in:
parent
1a85ad210f
commit
9a12e1f7bb
2 changed files with 32 additions and 0 deletions
30
packages/customfonts.nix
Normal file
30
packages/customfonts.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "customfonts";
|
||||
version = "1.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://www.coastalcommits.com/cswimr/fonts/archive/master.tar.gz";
|
||||
sha256 = "sha256-XBRNu1DxjhfloJkQrFy4Wz4IUD6abhKcZKkX/snyxs4";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
${pkgs.gnutar}/bin/tar xf $src
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm644 fonts/ttf/ComicCode/*.ttf -t $out/share/fonts/truetype
|
||||
install -Dm644 fonts/otf/ComicCode/*.otf -t $out/share/fonts/opentype
|
||||
|
||||
install -Dm644 fonts/ttf/ComicCodeNerdFont/*.ttf -t $out/share/fonts/truetype
|
||||
install -Dm644 fonts/otf/ComicCodeNerdFont/*.otf -t $out/share/fonts/opentype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue