tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
atop: 2.6.0 -> 2.7.1
Fabian Affolter
3 years ago
457d492c
9915de38
+24
-9
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
atop
default.nix
+24
-9
pkgs/os-specific/linux/atop/default.nix
···
12
13
stdenv.mkDerivation rec {
14
pname = "atop";
15
-
version = "2.6.0";
16
17
src = fetchurl {
18
url = "https://www.atoptool.nl/download/atop-${version}.tar.gz";
19
-
sha256 = "nsLKOlcWkvfvqglfmaUQZDK8txzCLNbElZfvBIEFj3I=";
20
};
21
22
-
nativeBuildInputs = lib.optionals withAtopgpu [ python3.pkgs.wrapPython ];
23
-
buildInputs = [ zlib ncurses ] ++ lib.optionals withAtopgpu [ python3 ];
24
-
pythonPath = lib.optionals withAtopgpu [ python3.pkgs.pynvml ];
0
0
0
0
0
0
0
0
0
0
0
25
26
makeFlags = [
27
"DESTDIR=$(out)"
···
53
substituteInPlace Makefile --replace 'chmod 04711' 'chmod 0711'
54
'';
55
56
-
installTargets = [ "systemdinstall" ];
57
preInstall = ''
58
mkdir -p $out/bin
59
'';
0
60
postInstall = ''
61
-
# remove extra files we don't need
62
rm -r $out/{var,etc} $out/bin/atop{sar,}-${version}
63
'' + (if withAtopgpu then ''
64
wrapPythonPrograms
···
70
platforms = platforms.linux;
71
maintainers = with maintainers; [ raskin ];
72
description = "Console system performance monitor";
73
-
74
longDescription = ''
75
-
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.
0
0
0
0
0
76
'';
77
license = licenses.gpl2Plus;
78
downloadPage = "http://atoptool.nl/downloadatop.php";
···
12
13
stdenv.mkDerivation rec {
14
pname = "atop";
15
+
version = "2.7.1";
16
17
src = fetchurl {
18
url = "https://www.atoptool.nl/download/atop-${version}.tar.gz";
19
+
sha256 = "sha256-ykjS8X4HHe6tXm6cyeOIv2oycNaV5hl2s3lNTZJ7XE4=";
20
};
21
22
+
nativeBuildInputs = lib.optionals withAtopgpu [
23
+
python3.pkgs.wrapPython
24
+
];
25
+
26
+
buildInputs = [
27
+
zlib
28
+
ncurses
29
+
] ++ lib.optionals withAtopgpu [
30
+
python3
31
+
];
32
+
33
+
pythonPath = lib.optionals withAtopgpu [
34
+
python3.pkgs.pynvml
35
+
];
36
37
makeFlags = [
38
"DESTDIR=$(out)"
···
64
substituteInPlace Makefile --replace 'chmod 04711' 'chmod 0711'
65
'';
66
0
67
preInstall = ''
68
mkdir -p $out/bin
69
'';
70
+
71
postInstall = ''
72
+
# Remove extra files we don't need
73
rm -r $out/{var,etc} $out/bin/atop{sar,}-${version}
74
'' + (if withAtopgpu then ''
75
wrapPythonPrograms
···
81
platforms = platforms.linux;
82
maintainers = with maintainers; [ raskin ];
83
description = "Console system performance monitor";
0
84
longDescription = ''
85
+
Atop is an ASCII full-screen performance monitor that is capable of reporting the activity of
86
+
all processes (even if processes have finished during the interval), daily logging of system
87
+
and process activity for long-term analysis, highlighting overloaded system resources by using
88
+
colors, etc. At regular intervals, it shows system-level activity related to the CPU, memory,
89
+
swap, disks and network layers, and for every active process it shows the CPU utilization,
90
+
memory growth, disk utilization, priority, username, state, and exit code.
91
'';
92
license = licenses.gpl2Plus;
93
downloadPage = "http://atoptool.nl/downloadatop.php";