annotation-mono: init at 0.2

Max Guppy f723d120 93b9cc2e

+33
+33
pkgs/by-name/an/annotation-mono/package.nix
···
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchzip, 5 + }: 6 + stdenvNoCC.mkDerivation (finalAttrs: { 7 + pname = "annotation-mono"; 8 + version = "0.2"; 9 + 10 + src = fetchzip { 11 + url = "https://github.com/qwerasd205/AnnotationMono/releases/download/v${finalAttrs.version}/AnnotationMono_v${finalAttrs.version}.zip"; 12 + hash = "sha256-81BcPYE4C9kuetiCzgGPl59WO4QkBML7dwAkD1DCCZo="; 13 + stripRoot = false; 14 + }; 15 + 16 + installPhase = '' 17 + runHook preInstall 18 + 19 + install -D -m444 -t $out/share/fonts/truetype $src/dist/ttf/*.ttf 20 + install -D -m444 -t $out/share/fonts/truetype $src/dist/variable/AnnotationMono-VF.ttf 21 + install -D -m444 -t $out/share/fonts/opentype $src/dist/otf/*.otf 22 + 23 + runHook postInstall 24 + ''; 25 + 26 + meta = { 27 + homepage = "https://github.com/qwerasd205/AnnotationMono"; 28 + description = "Lovingly crafted handwriting-style monospace font"; 29 + license = lib.licenses.ofl; 30 + platforms = lib.platforms.all; 31 + maintainers = [ lib.maintainers.theonlymrcat ]; 32 + }; 33 + })