From d5d8ce71f4b7948c6085155e4da9d3203d145f2a Mon Sep 17 00:00:00 2001 From: xenia Date: Mon, 4 Mar 2024 12:25:12 +0100 Subject: [PATCH] new fonts --- home/extras.nix | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/home/extras.nix b/home/extras.nix index 52de437c..584af1cd 100644 --- a/home/extras.nix +++ b/home/extras.nix @@ -65,5 +65,38 @@ rec { sha256 = "sha256-ASDT1T+6/n4HR0ubgkn0qwdijY91VVL2Y9OUkKQMKKc="; }; - all = [ qr-generator qr-paste sax2 manrope metrophobic ]; + cleanvertising = pkgs.fetchurl { + name = "cleanvertising"; + url = "https://dl.dafont.com/dl/?f=cleanvertising_nl"; + + downloadToTemp = true; + recursiveHash = true; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + ${pkgs.unzip}/bin/unzip -j $downloadedFile 'Cleanvertising Black.ttf' -d $out/share/fonts/opentype + ''; + + sha256 = "sha256-kBrEt8mnSgHwEkqiRNkCtB7y0Tw8RGCuQ8LG0vw9t9k="; + }; + + stencila = pkgs.fetchurl { + name = "stencilia"; + url = "https://dl.dafont.com/dl/?f=stencilia"; + + downloadToTemp = true; + recursiveHash = true; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + ${pkgs.unzip}/bin/unzip -j $downloadedFile 'Stencilia-A.ttf' 'Stencilia-Bold.ttf' -d $out/share/fonts/opentype + ''; + + sha256 = "sha256-tZnDoxZnIrZkTwjOTUjGcqLaXtdZ2Tl6gcRXMclT6PY="; + }; + + all = [ + qr-generator qr-paste + sax2 manrope metrophobic cleanvertising stencila + ]; }