Skip to content

Commit

Permalink
hubot-sans: 1.0 -> 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Sep 19, 2023
1 parent 5164552 commit d967d5e
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions pkgs/data/fonts/hubot-sans/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -34,4 +39,4 @@ stdenvNoCC.mkDerivation rec {
maintainers = with lib.maintainers; [ drupol ];
platforms = lib.platforms.all;
};
}
})

0 comments on commit d967d5e

Please sign in to comment.