Adding the bootchart capture script. It worked for me, run standalone, not as init.
I tried their website renderer, but it did not work for me. It may be shut down, because their last update is for 2006. Next steps: put it into nixos, and build the renderer (java!). svn path=/nixpkgs/trunk/; revision=18041
This commit is contained in:
parent
7fa0d73966
commit
c22d173893
37
pkgs/tools/system/bootchart/default.nix
Normal file
37
pkgs/tools/system/bootchart/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{stdenv, fetchurl, gnutar, gzip, coreutils, utillinux, gnugrep, gnused, psmisc, nettools}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "bootchart-0.9";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/bootchart/${name}.tar.bz2";
|
||||||
|
sha256 = "0z9jvi7cyp3hpx6hf1fyaa8fhnaz7aqid8wrkwp29cngryg3jf3p";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ gnutar gzip coreutils utillinux gnugrep gnused psmisc nettools ];
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
export MYPATH=
|
||||||
|
for i in $buildInputs; do
|
||||||
|
export MYPATH=''${MYPATH}''${MYPATH:+:}$i/bin:$i/sbin
|
||||||
|
done
|
||||||
|
|
||||||
|
sed -i -e 's,PATH.*,PATH='$MYPATH, \
|
||||||
|
-e 's,^CONF.*,CONF='$out/etc/bootchartd.conf, \
|
||||||
|
script/bootchartd
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
ensureDir $out/sbin $out/etc
|
||||||
|
cp script/bootchartd $out/sbin
|
||||||
|
cp script/bootchartd.conf $out/etc
|
||||||
|
chmod +x $out/sbin/bootchartd
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.bootchart.org/;
|
||||||
|
description = "Performance analysis and visualization of the GNU/Linux boot process";
|
||||||
|
license="GPLv2+";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -477,6 +477,10 @@ let
|
|||||||
inherit fetchurl stdenv perl;
|
inherit fetchurl stdenv perl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bootchart = import ../tools/system/bootchart {
|
||||||
|
inherit fetchurl stdenv gnutar gzip coreutils utillinux gnugrep gnused psmisc nettools;
|
||||||
|
};
|
||||||
|
|
||||||
eggdrop = import ../tools/networking/eggdrop {
|
eggdrop = import ../tools/networking/eggdrop {
|
||||||
inherit fetchurl stdenv tcl;
|
inherit fetchurl stdenv tcl;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user