2023-01-28 03:45:00 +01:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2020-02-24 19:08:57 +01:00
|
|
|
|
2023-01-28 03:45:00 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "cozette";
|
2024-01-12 21:35:27 +01:00
|
|
|
version = "1.23.2";
|
2020-02-24 19:08:57 +01:00
|
|
|
|
2023-01-28 03:45:00 +01:00
|
|
|
src = fetchzip {
|
2023-07-15 06:20:00 +02:00
|
|
|
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts-v-${builtins.replaceStrings ["."] ["-"] version}.zip";
|
2024-01-12 21:35:27 +01:00
|
|
|
hash = "sha256-v1UWrVx1PnNPiFtMMy4kOkIe//iHxx0LOA4nHo95Zws=";
|
2023-01-28 03:45:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-02-24 19:08:57 +01:00
|
|
|
|
2023-01-28 03:45:00 +01: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
|
2023-07-28 00:03:38 +02:00
|
|
|
install -Dm644 *.woff -t $out/share/fonts/woff
|
|
|
|
install -Dm644 *.woff2 -t $out/share/fonts/woff2
|
2023-01-28 03:45:00 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-02-24 19:08:57 +01:00
|
|
|
|
2020-07-02 11:20:00 +02:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A bitmap programming font optimized for coziness";
|
2020-02-24 19:08:57 +01:00
|
|
|
homepage = "https://github.com/slavfox/cozette";
|
2023-07-15 06:20:00 +02:00
|
|
|
changelog = "https://github.com/slavfox/Cozette/blob/v.${version}/CHANGELOG.md";
|
2020-02-24 19:08:57 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2020-07-02 11:20:00 +02:00
|
|
|
maintainers = with maintainers; [ brettlyons marsam ];
|
2020-02-24 19:08:57 +01:00
|
|
|
};
|
2023-01-28 03:45:00 +01:00
|
|
|
}
|