2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
undmg,
|
|
|
|
nix-update-script,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "stats";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.11.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/exelban/stats/releases/download/v${finalAttrs.version}/Stats.dmg";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-/6QFchDpWrJZEKuIsQi6FcGprVOa8J8THJ9Kt3ESrwY=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
2023-11-16 04:20:00 +00:00
|
|
|
description = "macOS system monitor in your menu bar";
|
|
|
|
homepage = "https://github.com/exelban/stats";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ donteatoreo emilytrau ];
|
2024-06-05 15:53:02 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
2023-11-16 04:20:00 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
|
|
|
})
|