mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 06:28:50 +03:00
hubot-sans: 1.0 -> 1.0.1
Diff: https://github.com/github/hubot-sans/compare/v1.0...v1.0.1 Changelog: https://github.com/github/hubot-sans/releases/tag/v1.0.1
This commit is contained in:
parent
5164552aa4
commit
d967d5eaf0
@ -1,26 +1,31 @@
|
||||
{ lib
|
||||
, fetchzip
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "hubot-sans";
|
||||
version = "1.0";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v" + version;
|
||||
owner = "github";
|
||||
repo = pname;
|
||||
sha256 = "GOql+V5TH4b3TmhlgnKcx3jzUAO2jm4HRJRNzdIKxgg=";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/github/hubot-sans/releases/download/v${finalAttrs.version}/Hubot-Sans.zip";
|
||||
hash = "sha256-EWTyoGNqyZcqlF1H1Tdcodc8muHIo8C9gbSPAjiogRk=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -m644 --target $out/share/fonts/truetype/hubot-sans -D $src/dist/hubot-sans.ttf
|
||||
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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A variable font from GitHub";
|
||||
homepage = "https://github.com/github/hubot-sans";
|
||||
changelog = "https://github.com/github/hubot-sans/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.ofl;
|
||||
longDescription = ''
|
||||
Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with
|
||||
@ -34,4 +39,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user