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

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

29 lines
833 B
Nix
Raw Normal View History

2020-07-02 09:20:00 +00:00
{ lib, fetchzip }:
2020-02-24 18:08:57 +00:00
let
version = "1.13.0";
2020-07-02 09:20:00 +00:00
in
fetchzip rec {
name = "Cozette-${version}";
2020-02-24 18:08:57 +00:00
2020-07-02 09:20:00 +00:00
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip";
2020-02-24 18:08:57 +00:00
sha256 = "sha256-xp3BCYfNUxCNewg4FfzmJnKp0PARvvnViMVwT25nWdM=";
2020-02-24 18:08:57 +00:00
2020-07-02 09:20:00 +00:00
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
2020-02-24 18:08:57 +00:00
'';
2020-07-02 09:20:00 +00:00
meta = with lib; {
description = "A bitmap programming font optimized for coziness";
2020-02-24 18:08:57 +00:00
homepage = "https://github.com/slavfox/cozette";
license = licenses.mit;
platforms = platforms.all;
2020-07-02 09:20:00 +00:00
maintainers = with maintainers; [ brettlyons marsam ];
2020-02-24 18:08:57 +00:00
};
}