Merge pull request #313217 from DontEatOreo/update-stats

stats: 2.10.13 -> 2.10.14

authored by Pol Dellaiera and committed by GitHub f8baae53 e55718f3

+17 -24
+17 -24
pkgs/by-name/st/stats/package.nix
··· 1 - { lib 2 - , stdenvNoCC 3 - , fetchurl 4 - , undmg 5 - , writeShellApplication 6 - , curl 7 - , jq 8 - , common-updater-scripts 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchurl, 5 + undmg, 6 + nix-update-script, 9 7 }: 10 8 11 9 stdenvNoCC.mkDerivation (finalAttrs: { 12 10 pname = "stats"; 13 - version = "2.10.13"; 11 + version = "2.10.14"; 14 12 15 13 src = fetchurl { 16 14 url = "https://github.com/exelban/stats/releases/download/v${finalAttrs.version}/Stats.dmg"; 17 - hash = "sha256-AzH1rZFqEH8sovZZfJykvsEmCedEZWigQFHWHl6/PdE="; 15 + hash = "sha256-WJBn98C5uV9EmeEM+Zieztuof1CW80co8wrLntY7D0E="; 18 16 }; 19 17 20 18 sourceRoot = "."; ··· 30 28 runHook postInstall 31 29 ''; 32 30 33 - passthru.updateScript = lib.getExe (writeShellApplication { 34 - name = "stats-update-script"; 35 - runtimeInputs = [ curl jq common-updater-scripts ]; 36 - text = '' 37 - set -euo pipefail 38 - url="$(curl --silent "https://api.github.com/repos/exelban/stats/tags?per_page=1")" 39 - version="$(echo "$url" | jq -r '.[0].name' | cut -c 2-)" 40 - update-source-version stats "$version" --file=./pkgs/by-name/st/stats/package.nix 41 - ''; 42 - }); 31 + passthru.updateScript = nix-update-script { }; 43 32 44 - meta = with lib; { 33 + meta = { 45 34 description = "macOS system monitor in your menu bar"; 46 35 homepage = "https://github.com/exelban/stats"; 47 - license = licenses.mit; 36 + license = lib.licenses.mit; 37 + maintainers = with lib.maintainers; [ 38 + donteatoreo 39 + emilytrau 40 + Enzime 41 + ]; 42 + platforms = lib.platforms.darwin; 48 43 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 49 - maintainers = with maintainers; [ emilytrau Enzime donteatoreo ]; 50 - platforms = platforms.darwin; 51 44 }; 52 45 })