nixpkgs/pkgs/by-name/ma/macpm/package.nix
Sirio Balmelli c31603e644
asitop -> macpm: migrate to maintained fork, fix build
Migrate from 'asitop' to maintained fork 'macpm',
which fixes an issue related to temp files owned by root.

Fix python application build.

Symlink 'asitop' in the final package to maintain backwards compatibility.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
Co-authored-by: Aleksana <me@aleksana.moe>
2025-04-14 14:08:50 +02:00

46 lines
974 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication {
pname = "macpm";
version = "0.24-unstable-2024-11-19";
format = "setuptools";
src = fetchFromGitHub {
owner = "visualcjy";
repo = "macpm";
rev = "7882d4c86c84bb23a8966ca57990de9b11397bd4";
hash = "sha256-jqaPPvYbuL8q6grmBLyZLf8aDmjugYxMOWAh1Ix82jc=";
};
# has no tests
doCheck = false;
# backwards compatibility for users still expecting 'asitop'
postInstall = ''
ln -rs $out/bin/macpm $out/bin/asitop
'';
dependencies = with python3Packages; [
dashing
humanize
psutil
];
meta = {
description = "Perf monitoring CLI tool for Apple Silicon; previously named 'asitop'";
homepage = "https://github.com/visualcjy/macpm";
mainProgram = "macpm";
platforms = [ "aarch64-darwin" ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
juliusrickert
siriobalmelli
];
};
}