nixpkgs/pkgs/data/fonts/cozette/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2020-02-24 18:08:57 +00:00
stdenvNoCC.mkDerivation rec {
pname = "cozette";
2024-08-07 11:33:45 +01:00
version = "1.25.1";
2020-02-24 18:08:57 +00:00
src = fetchzip {
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts-v-${builtins.replaceStrings ["."] ["-"] version}.zip";
2024-08-07 11:33:45 +01:00
hash = "sha256-Cnl7DTPcZmCRM06qe7WXfZorok3uUNYcB9bR/auzCao=";
};
installPhase = ''
runHook preInstall
2020-02-24 18:08:57 +00:00
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
'';
2020-02-24 18:08:57 +00:00
2020-07-02 10:20:00 +01:00
meta = with lib; {
description = "Bitmap programming font optimized for coziness";
2020-02-24 18:08:57 +00:00
homepage = "https://github.com/slavfox/cozette";
changelog = "https://github.com/slavfox/Cozette/blob/v.${version}/CHANGELOG.md";
2020-02-24 18:08:57 +00:00
license = licenses.mit;
platforms = platforms.all;
2024-04-24 05:20:00 +01:00
maintainers = with maintainers; [ brettlyons ];
2020-02-24 18:08:57 +00:00
};
}