depot/third_party/nixpkgs/pkgs/data/fonts/cozette/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

28 lines
834 B
Nix

{ lib, fetchzip }:
let
version = "1.8.3";
in
fetchzip rec {
name = "Cozette-${version}";
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip";
sha256 = "1nc4zk6n7cbv9vwlhpm3ady5lc4d4ic1klyywwfg27w8j0jv57hx";
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.bdf -d $out/share/fonts/misc
unzip -j $downloadedFile \*.otb -d $out/share/fonts/misc
'';
meta = with lib; {
description = "A bitmap programming font optimized for coziness.";
homepage = "https://github.com/slavfox/cozette";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ brettlyons marsam ];
};
}