Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #256137 from marsam/update-hubot-sans

hubot-sans: 1.0 -> 1.0.1

authored by Pol Dellaiera and committed by GitHub 3ce358dc 5ba549ea

+15 -10
+15 -10
pkgs/data/fonts/hubot-sans/default.nix
··· 1 1 { lib 2 + , fetchzip 2 3 , stdenvNoCC 3 - , fetchFromGitHub 4 4 }: 5 5 6 - stdenvNoCC.mkDerivation rec { 6 + stdenvNoCC.mkDerivation (finalAttrs: { 7 7 pname = "hubot-sans"; 8 - version = "1.0"; 8 + version = "1.0.1"; 9 9 10 - src = fetchFromGitHub { 11 - rev = "v" + version; 12 - owner = "github"; 13 - repo = pname; 14 - sha256 = "GOql+V5TH4b3TmhlgnKcx3jzUAO2jm4HRJRNzdIKxgg="; 10 + src = fetchzip { 11 + url = "https://github.com/github/hubot-sans/releases/download/v${finalAttrs.version}/Hubot-Sans.zip"; 12 + hash = "sha256-EWTyoGNqyZcqlF1H1Tdcodc8muHIo8C9gbSPAjiogRk="; 13 + stripRoot = false; 15 14 }; 16 15 17 16 installPhase = '' 18 - install -m644 --target $out/share/fonts/truetype/hubot-sans -D $src/dist/hubot-sans.ttf 17 + runHook preInstall 18 + 19 + install -Dm644 Hubot\ Sans/TTF/*.ttf -t $out/share/fonts/truetype/ 20 + install -Dm644 Hubot\ Sans/OTF/*.otf -t $out/share/fonts/opentype/ 21 + 22 + runHook postInstall 19 23 ''; 20 24 21 25 meta = { 22 26 description = "A variable font from GitHub"; 23 27 homepage = "https://github.com/github/hubot-sans"; 28 + changelog = "https://github.com/github/hubot-sans/releases/tag/v${finalAttrs.version}"; 24 29 license = lib.licenses.ofl; 25 30 longDescription = '' 26 31 Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with ··· 34 39 maintainers = with lib.maintainers; [ drupol ]; 35 40 platforms = lib.platforms.all; 36 41 }; 37 - } 42 + })