forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / co / cozette / package.nix
bloba198a9c63b0d62bef9eb57ea84d1d9a38b9b0216
1 { lib, stdenvNoCC, fetchzip }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "cozette";
5   version = "1.25.2";
7   src = fetchzip {
8     url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts-v-${builtins.replaceStrings ["."] ["-"] version}.zip";
9     hash = "sha256-LtZHbsma9EuegS349gQo4W+ZT8x+Vb3CD/5vRKjwkzc=";
10   };
12   installPhase = ''
13     runHook preInstall
15     install -Dm644 *.ttf -t $out/share/fonts/truetype
16     install -Dm644 *.otf -t $out/share/fonts/opentype
17     install -Dm644 *.bdf -t $out/share/fonts/misc
18     install -Dm644 *.otb -t $out/share/fonts/misc
19     install -Dm644 *.woff -t $out/share/fonts/woff
20     install -Dm644 *.woff2 -t $out/share/fonts/woff2
22     runHook postInstall
23   '';
25   meta = with lib; {
26     description = "Bitmap programming font optimized for coziness";
27     homepage = "https://github.com/slavfox/cozette";
28     changelog = "https://github.com/slavfox/Cozette/blob/v.${version}/CHANGELOG.md";
29     license = licenses.mit;
30     platforms = platforms.all;
31     maintainers = with maintainers; [ brettlyons ];
32   };