···12121313stdenv.mkDerivation rec {
1414 pname = "atop";
1515- version = "2.6.0";
1515+ version = "2.7.1";
16161717 src = fetchurl {
1818 url = "https://www.atoptool.nl/download/atop-${version}.tar.gz";
1919- sha256 = "nsLKOlcWkvfvqglfmaUQZDK8txzCLNbElZfvBIEFj3I=";
1919+ sha256 = "sha256-ykjS8X4HHe6tXm6cyeOIv2oycNaV5hl2s3lNTZJ7XE4=";
2020 };
21212222- nativeBuildInputs = lib.optionals withAtopgpu [ python3.pkgs.wrapPython ];
2323- buildInputs = [ zlib ncurses ] ++ lib.optionals withAtopgpu [ python3 ];
2424- pythonPath = lib.optionals withAtopgpu [ python3.pkgs.pynvml ];
2222+ nativeBuildInputs = lib.optionals withAtopgpu [
2323+ python3.pkgs.wrapPython
2424+ ];
2525+2626+ buildInputs = [
2727+ zlib
2828+ ncurses
2929+ ] ++ lib.optionals withAtopgpu [
3030+ python3
3131+ ];
3232+3333+ pythonPath = lib.optionals withAtopgpu [
3434+ python3.pkgs.pynvml
3535+ ];
25362637 makeFlags = [
2738 "DESTDIR=$(out)"
···5364 substituteInPlace Makefile --replace 'chmod 04711' 'chmod 0711'
5465 '';
55665656- installTargets = [ "systemdinstall" ];
5767 preInstall = ''
5868 mkdir -p $out/bin
5969 '';
7070+6071 postInstall = ''
6161- # remove extra files we don't need
7272+ # Remove extra files we don't need
6273 rm -r $out/{var,etc} $out/bin/atop{sar,}-${version}
6374 '' + (if withAtopgpu then ''
6475 wrapPythonPrograms
···7081 platforms = platforms.linux;
7182 maintainers = with maintainers; [ raskin ];
7283 description = "Console system performance monitor";
7373-7484 longDescription = ''
7575- 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.
8585+ Atop is an ASCII full-screen performance monitor that is capable of reporting the activity of
8686+ all processes (even if processes have finished during the interval), daily logging of system
8787+ and process activity for long-term analysis, highlighting overloaded system resources by using
8888+ colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory,
8989+ swap, disks and network layers, and for every active process it shows the CPU utilization,
9090+ memory growth, disk utilization, priority, username, state, and exit code.
7691 '';
7792 license = licenses.gpl2Plus;
7893 downloadPage = "http://atoptool.nl/downloadatop.php";