From d967d5eaf0bf1e1706655e2d8b545102e40cfebf Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 19 Sep 2023 04:20:00 +0000 Subject: [PATCH] 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 --- pkgs/data/fonts/hubot-sans/default.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/data/fonts/hubot-sans/default.nix b/pkgs/data/fonts/hubot-sans/default.nix index 2458911fda38..5db592ae8b4f 100644 --- a/pkgs/data/fonts/hubot-sans/default.nix +++ b/pkgs/data/fonts/hubot-sans/default.nix @@ -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; }; -} +})