mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
5d6ec87cbb
Diff: https://github.com/slavfox/Cozette/compare/v.1.22.0...v.1.22.1 Changelog: https://github.com/slavfox/Cozette/blob/v.1.22.1/CHANGELOG.md
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cozette";
|
|
version = "1.22.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts-v-${builtins.replaceStrings ["."] ["-"] version}.zip";
|
|
hash = "sha256-HnMds58yv9Ck6ONRjdIm3CNpAi1E4Zei2MaxcMjp7FQ=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 *.ttf -t $out/share/fonts/truetype
|
|
install -Dm644 *.otf -t $out/share/fonts/opentype
|
|
install -Dm644 *.bdf -t $out/share/fonts/misc
|
|
install -Dm644 *.otb -t $out/share/fonts/misc
|
|
install -Dm644 *.woff -t $out/share/fonts/woff
|
|
install -Dm644 *.woff2 -t $out/share/fonts/woff2
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A bitmap programming font optimized for coziness";
|
|
homepage = "https://github.com/slavfox/cozette";
|
|
changelog = "https://github.com/slavfox/Cozette/blob/v.${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ brettlyons marsam ];
|
|
};
|
|
}
|