mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 12:39:54 +03:00
1524ca4564
Diff: https://github.com/exelban/stats/compare/v2.10.5...v2.10.6 Changelog: https://github.com/exelban/stats/releases/tag/v2.10.6
37 lines
832 B
Nix
37 lines
832 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, undmg
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "stats";
|
|
version = "2.10.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/exelban/stats/releases/download/v${finalAttrs.version}/Stats.dmg";
|
|
hash = "sha256-5FjxEBZ+HbiWVR/8DBfVPeWACRwrw+Kcn1jld/CR+Ck=";
|
|
};
|
|
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;
|
|
};
|
|
})
|