Merge pull request #16963 from womfoo/init/cking-kernel-tools

Init {fnotify,fork,power,smem}stat kernel tools
This commit is contained in:
Tuomas Tynkkynen 2016-07-16 21:15:23 +03:00 committed by GitHub
commit 6e0ab36de0
5 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "fnotifystat-${version}";
version = "0.01.14";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/fnotifystat/fnotifystat-${version}.tar.gz";
sha256 = "1cc3w94v8b4nfpkgr33gfzxpwaf43brqyc0fla9p70gk3hxjqzi5";
};
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "File activity monitoring tool";
homepage = http://kernel.ubuntu.com/~cking/fnotifystat/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "forkstat-${version}";
version = "0.01.13";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/forkstat/forkstat-${version}.tar.gz";
sha256 = "12dmqpv0q3x166sya93rhcj7vs4868x7y7lwfwv9l54hhirpamhq";
};
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "Process fork/exec/exit monitoring tool";
homepage = http://kernel.ubuntu.com/~cking/forkstat/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "powerstat-${version}";
version = "0.02.10";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
sha256 = "11n2k20h27j7m8j0l524w23xlkjhapsb3ml1qpx1si7gf0pkglcl";
};
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "Laptop power measuring tool";
homepage = http://kernel.ubuntu.com/~cking/powerstat/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "smemstat-${version}";
version = "0.01.14";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.gz";
sha256 = "0qkpbg0n40d8m9jzf3ylpdp65zzs344zbjn8khha4plbwg00ijrw";
};
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "Memory usage monitoring tool";
homepage = http://kernel.ubuntu.com/~cking/smemstat/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}

View File

@ -10773,6 +10773,10 @@ in
firejail = callPackage ../os-specific/linux/firejail {};
fnotifystat = callPackage ../os-specific/linux/fnotifystat { };
forkstat = callPackage ../os-specific/linux/forkstat { };
freefall = callPackage ../os-specific/linux/freefall {
inherit (linuxPackages) kernel;
};
@ -10874,6 +10878,10 @@ in
openisns = callPackage ../os-specific/linux/open-isns { };
powerstat = callPackage ../os-specific/linux/powerstat { };
smemstat = callPackage ../os-specific/linux/smemstat { };
tgt = callPackage ../tools/networking/tgt { };
# -- Linux kernel expressions ------------------------------------------------