2024-05-20 19:20:42 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
undmg,
|
2024-05-20 19:23:19 +00:00
|
|
|
nix-update-script,
|
2023-07-07 12:40:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "stats";
|
2024-09-23 13:18:12 +00:00
|
|
|
version = "2.11.11";
|
2023-07-07 12:40:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/exelban/stats/releases/download/v${finalAttrs.version}/Stats.dmg";
|
2024-09-23 13:18:12 +00:00
|
|
|
hash = "sha256-6USopfRy+ffxXYNAp14RcO/uKZa1yfnz2S3RP8HmCWw=";
|
2023-07-07 12:40:53 +00:00
|
|
|
};
|
2024-04-14 15:00:20 +00:00
|
|
|
|
2023-07-07 12:40:53 +00:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-05-20 19:23:19 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2024-04-14 15:00:20 +00:00
|
|
|
|
2024-05-20 19:30:11 +00:00
|
|
|
meta = {
|
2023-07-07 12:40:53 +00:00
|
|
|
description = "macOS system monitor in your menu bar";
|
|
|
|
homepage = "https://github.com/exelban/stats";
|
2024-05-20 19:30:11 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-07-09 04:21:18 +00:00
|
|
|
maintainers = with lib.maintainers; [ donteatoreo emilytrau ];
|
2024-05-20 19:30:11 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
2024-05-20 19:30:32 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2023-07-07 12:40:53 +00:00
|
|
|
};
|
|
|
|
})
|