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