Adding netatop module, for atop
This commit is contained in:
parent
f75d60fd90
commit
8b79a00c44
36
pkgs/os-specific/linux/netatop/default.nix
Normal file
36
pkgs/os-specific/linux/netatop/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv, fetchurl, kernelDev, zlib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "netatop-${kernelDev.version}-0.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://www.atoptool.nl/download/netatop-0.2.tar.gz;
|
||||||
|
sha256 = "0ya4qys2qpw080sbgixyx1kawdx1c3smnxwmqcchn0hg9hhndvc0";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
patchShebangs mkversion
|
||||||
|
sed -i -e 's,^KERNDIR.*,KERNDIR=${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build,' \
|
||||||
|
*/Makefile
|
||||||
|
sed -i -e 's,/lib/modules.*extra,'$out'/lib/modules/${kernelDev.modDirVersion}/extra,' \
|
||||||
|
-e s,/usr,$out, \
|
||||||
|
-e /init.d/d \
|
||||||
|
-e /depmod/d \
|
||||||
|
Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
ensureDir $out/bin $out/share/man/man{4,8}
|
||||||
|
ensureDir $out/lib/modules/${kernelDev.modDirVersion}/extra
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Network monitoring module for atop";
|
||||||
|
homepage = http://www.atoptool.nl/downloadnetatop.php;
|
||||||
|
license = "GPL2";
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||||||
|
};
|
||||||
|
}
|
@ -6139,6 +6139,8 @@ let
|
|||||||
*/
|
*/
|
||||||
ndiswrapper = callPackage ../os-specific/linux/ndiswrapper { };
|
ndiswrapper = callPackage ../os-specific/linux/ndiswrapper { };
|
||||||
|
|
||||||
|
netatop = callPackage ../os-specific/linux/netatop { };
|
||||||
|
|
||||||
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
||||||
|
|
||||||
spl = callPackage ../os-specific/linux/spl/default.nix { };
|
spl = callPackage ../os-specific/linux/spl/default.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user