2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-07-18 16:06:22 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.13.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
in
|
2023-01-20 10:41:00 +00:00
|
|
|
(fetchzip rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
name = "Cozette-${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-xp3BCYfNUxCNewg4FfzmJnKp0PARvvnViMVwT25nWdM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "A bitmap programming font optimized for coziness";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/slavfox/cozette";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ brettlyons marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
})
|