From 9f08c2d4b9e0dccc21df012353e05c38b7b71944 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Wed, 22 Sep 2021 17:24:12 -0400 Subject: [PATCH] btop: init at 1.0.5 --- pkgs/tools/system/btop/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/system/btop/default.nix diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix new file mode 100644 index 000000000000..5425b6e5f5b7 --- /dev/null +++ b/pkgs/tools/system/btop/default.nix @@ -0,0 +1,26 @@ +{ lib +, fetchFromGitHub +, stdenv +}: + +stdenv.mkDerivation rec { + pname = "btop"; + version = "1.0.5"; + + src = fetchFromGitHub { + owner = "aristocratos"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-pa9i65ndx8LMTMRXyL2GXCauM6Q8gAb16zGOylQFwL0="; + }; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "A monitor of resources"; + homepage = "https://github.com/aristocratos/btop"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ rmcgibbo ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2aac02d7f8ae..2811576a88ee 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21337,6 +21337,10 @@ with pkgs; inherit (darwin) IOKit; }; + btop = callPackage ../tools/system/btop { + stdenv = gcc11Stdenv; + }; + nmon = callPackage ../os-specific/linux/nmon { }; hwdata = callPackage ../os-specific/linux/hwdata { };