commit e8620f94bce596b8492e88eafa6a8960f9c8e509
parent e879b49e15fec426065e863cc67cf33113c65ab6
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 16 Mar 2022 22:43:54 +0100
parent e879b49e15fec426065e863cc67cf33113c65ab6
Author: Leah (ctucx) <leah@ctu.cx>
Date: Wed, 16 Mar 2022 22:43:54 +0100
pkgs: add asitop
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/machines/blechbuechse/darwin-configuration.nix b/machines/blechbuechse/darwin-configuration.nix @@ -2,6 +2,7 @@ let bgiparser = pkgs.callPackage ../../pkgs/bgiparser.nix {}; + asitop = pkgs.callPackage ../../pkgs/asitop.nix {}; Firefox = pkgs.callPackage ../../pkgs/macApps/Firefox.nix {}; iTerm = pkgs.callPackage ../../pkgs/macApps/iTerm.nix {}; @@ -34,7 +35,7 @@ in { home-manager = { useUserPackages = true; - users.leah.home.packages = [ bgiparser ]; + users.leah.home.packages = [ bgiparser asitop ]; }; environment = {
diff --git a/pkgs/asitop.nix b/pkgs/asitop.nix @@ -0,0 +1,32 @@ +{ pkgs, python3Packages }: + +with python3Packages; + +let + dashing = buildPythonApplication { + name = "dashing"; + + propagatedBuildInputs = [ blessed ]; + + src = pkgs.fetchFromGitHub { + owner = "FedericoCeratto"; + repo = "dashing"; + rev = "02a768f155ed04a29286e97e75c5ed5c7604f7c8"; + sha256 = "01hw3gflm24lx64kh4w5a472xr96c97kz1jj4h61pl1l47q3f5la"; + }; + }; + +in buildPythonApplication { + name = "asitop"; + + propagatedBuildInputs = [ psutil dashing ]; + + doCheck = false; + + src = pkgs.fetchFromGitHub { + owner = "tlkh"; + repo = "asitop"; + rev = "3ed4bb4615adcdeae63e61730cdfba4cf15888a9"; + sha256 = "0480m1ylpsb47zhrf8lya9wfanl47qzfm6gfg50p87f73xijlmmc"; + }; +}