depot/third_party/nixpkgs/pkgs/data/fonts/cozette/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

29 lines
945 B
Nix

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ lib, fetchzip }:
let
version = "1.13.0";
in
(fetchzip rec {
name = "Cozette-${version}";
url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip";
sha256 = "sha256-xp3BCYfNUxCNewg4FfzmJnKp0PARvvnViMVwT25nWdM=";
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 ];
};
}).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
'';
})