summary refs log tree commit diff
path: root/pkgs/os-specific/linux/atop
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-05-28 21:27:24 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-05-28 21:27:24 +0200
commit457d492c95ad64b14336f6cefea3f357ee6a34e8 (patch)
treefa7c59e8a6b4903d0b51c6eaf009018d81e58dd5 /pkgs/os-specific/linux/atop
parent9915de38db9de3f300d848a6df04a13f1dd02393 (diff)
downloadnixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.tar
nixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.tar.gz
nixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.tar.bz2
nixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.tar.lz
nixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.tar.xz
nixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.tar.zst
nixpkgs-457d492c95ad64b14336f6cefea3f357ee6a34e8.zip
atop: 2.6.0 -> 2.7.1
Diffstat (limited to 'pkgs/os-specific/linux/atop')
-rw-r--r--pkgs/os-specific/linux/atop/default.nix33
1 files changed, 24 insertions, 9 deletions
diff --git a/pkgs/os-specific/linux/atop/default.nix b/pkgs/os-specific/linux/atop/default.nix
index b082c594acb..47f76649dea 100644
--- a/pkgs/os-specific/linux/atop/default.nix
+++ b/pkgs/os-specific/linux/atop/default.nix
@@ -12,16 +12,27 @@
 
 stdenv.mkDerivation rec {
   pname = "atop";
-  version = "2.6.0";
+  version = "2.7.1";
 
   src = fetchurl {
     url = "https://www.atoptool.nl/download/atop-${version}.tar.gz";
-    sha256 = "nsLKOlcWkvfvqglfmaUQZDK8txzCLNbElZfvBIEFj3I=";
+    sha256 = "sha256-ykjS8X4HHe6tXm6cyeOIv2oycNaV5hl2s3lNTZJ7XE4=";
   };
 
-  nativeBuildInputs = lib.optionals withAtopgpu [ python3.pkgs.wrapPython ];
-  buildInputs = [ zlib ncurses ] ++ lib.optionals withAtopgpu [ python3 ];
-  pythonPath = lib.optionals withAtopgpu [ python3.pkgs.pynvml ];
+  nativeBuildInputs = lib.optionals withAtopgpu [
+    python3.pkgs.wrapPython
+  ];
+
+  buildInputs = [
+    zlib
+    ncurses
+  ] ++ lib.optionals withAtopgpu [
+    python3
+  ];
+
+  pythonPath = lib.optionals withAtopgpu [
+    python3.pkgs.pynvml
+  ];
 
   makeFlags = [
     "DESTDIR=$(out)"
@@ -53,12 +64,12 @@ stdenv.mkDerivation rec {
     substituteInPlace Makefile --replace 'chmod 04711' 'chmod 0711'
   '';
 
-  installTargets = [ "systemdinstall" ];
   preInstall = ''
     mkdir -p $out/bin
   '';
+
   postInstall = ''
-    # remove extra files we don't need
+    # Remove extra files we don't need
     rm -r $out/{var,etc} $out/bin/atop{sar,}-${version}
   '' + (if withAtopgpu then ''
     wrapPythonPrograms
@@ -70,9 +81,13 @@ stdenv.mkDerivation rec {
     platforms = platforms.linux;
     maintainers = with maintainers; [ raskin ];
     description = "Console system performance monitor";
-
     longDescription = ''
-      Atop is an ASCII full-screen performance monitor that is capable of reporting the activity of all processes (even if processes have finished during the interval), daily logging of system and process activity for long-term analysis, highlighting overloaded system resources by using colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory, swap, disks and network layers, and for every active process it shows the CPU utilization, memory growth, disk utilization, priority, username, state, and exit code.
+      Atop is an ASCII full-screen performance monitor that is capable of reporting the activity of
+      all processes (even if processes have finished during the interval), daily logging of system
+      and process activity for long-term analysis, highlighting overloaded system resources by using
+      colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory,
+      swap, disks and network layers, and for every active process it shows the CPU utilization,
+      memory growth, disk utilization, priority, username, state, and exit code.
     '';
     license = licenses.gpl2Plus;
     downloadPage = "http://atoptool.nl/downloadatop.php";