2022-11-21 17:40:18 +00:00
|
|
|
|
{ lib
|
2023-10-09 19:29:22 +00:00
|
|
|
|
, fetchzip
|
2022-11-21 17:40:18 +00:00
|
|
|
|
, stdenvNoCC
|
|
|
|
|
}:
|
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2022-11-21 17:40:18 +00:00
|
|
|
|
pname = "hubot-sans";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
version = "1.0.1";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
|
src = fetchzip {
|
|
|
|
|
url = "https://github.com/github/hubot-sans/releases/download/v${finalAttrs.version}/Hubot-Sans.zip";
|
|
|
|
|
hash = "sha256-EWTyoGNqyZcqlF1H1Tdcodc8muHIo8C9gbSPAjiogRk=";
|
|
|
|
|
stripRoot = false;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
|
|
install -Dm644 Hubot\ Sans/TTF/*.ttf -t $out/share/fonts/truetype/
|
|
|
|
|
install -Dm644 Hubot\ Sans/OTF/*.otf -t $out/share/fonts/opentype/
|
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2022-11-21 17:40:18 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "A variable font from GitHub";
|
|
|
|
|
homepage = "https://github.com/github/hubot-sans";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
changelog = "https://github.com/github/hubot-sans/releases/tag/v${finalAttrs.version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
license = lib.licenses.ofl;
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with
|
|
|
|
|
more geometric accents to lend a technical and idiosyncratic feel—perfect
|
|
|
|
|
for headers and pull-quotes. Made together with Degarism.
|
|
|
|
|
|
|
|
|
|
Hubot Sans is a variable font. Variable fonts enable different variations
|
|
|
|
|
of a typeface to be incorporated into one single file, and are supported
|
|
|
|
|
by all major browsers.
|
|
|
|
|
'';
|
|
|
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
|
})
|