diff options
author | Emily Trau <13267947+emilytrau@users.noreply.github.com> | 2023-11-13 16:46:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 16:46:42 +1100 |
commit | 3e80bf03c607fd078f8d017a7d29bacf4c004054 (patch) | |
tree | 630eae8c0dc60612dd8313f8650754dd99aceab3 | |
parent | 419b6b2d5cf2ee247dbd90d02def42270d4dc95b (diff) | |
parent | 8099d1c8fd97aea1ca7bb530ba74a7c2ba5e3d07 (diff) |
Merge pull request #242057 from emilytrau/stats-app
stats: init at 2.9.11
-rw-r--r-- | pkgs/by-name/st/stats/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/st/stats/package.nix b/pkgs/by-name/st/stats/package.nix new file mode 100644 index 000000000000..0a289e09897e --- /dev/null +++ b/pkgs/by-name/st/stats/package.nix @@ -0,0 +1,36 @@ +{ lib +, stdenvNoCC +, fetchurl +, undmg +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "stats"; + version = "2.9.11"; + + src = fetchurl { + url = "https://github.com/exelban/stats/releases/download/v${finalAttrs.version}/Stats.dmg"; + hash = "sha256-L7E3naVeFYxeS8OAEkXEgY7YB+6E+yrGfIAUr52EWvA="; + }; + sourceRoot = "."; + + nativeBuildInputs = [ undmg ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/Applications + cp -r *.app $out/Applications + + runHook postInstall + ''; + + meta = with lib; { + description = "macOS system monitor in your menu bar"; + homepage = "https://github.com/exelban/stats"; + license = licenses.mit; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + maintainers = with maintainers; [ emilytrau Enzime ]; + platforms = platforms.darwin; + }; +}) |