Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 1.1 kB view raw
1{ 2 lib, 3 4 python3Packages, 5 fetchFromGitHub, 6}: 7 8python3Packages.buildPythonApplication { 9 pname = "macpm"; 10 version = "0.24-unstable-2024-11-19"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "visualcjy"; 15 repo = "macpm"; 16 rev = "7882d4c86c84bb23a8966ca57990de9b11397bd4"; 17 hash = "sha256-jqaPPvYbuL8q6grmBLyZLf8aDmjugYxMOWAh1Ix82jc="; 18 }; 19 20 build-system = with python3Packages; [ 21 setuptools 22 ]; 23 24 dependencies = with python3Packages; [ 25 dashing 26 humanize 27 psutil 28 ]; 29 30 # has no tests 31 doCheck = false; 32 33 # backwards compatibility for users still expecting 'asitop' 34 postInstall = '' 35 ln -rs $out/bin/macpm $out/bin/asitop 36 ''; 37 38 pythonImportsCheck = [ "macpm" ]; 39 40 meta = { 41 description = "Perf monitoring CLI tool for Apple Silicon; previously named 'asitop'"; 42 homepage = "https://github.com/visualcjy/macpm"; 43 mainProgram = "macpm"; 44 platforms = [ "aarch64-darwin" ]; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ 47 juliusrickert 48 siriobalmelli 49 ]; 50 }; 51}