nixpkgs/pkgs/by-name/st/stats/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
917 B
Nix
Raw Normal View History

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