diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-10-29 23:15:10 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-10-29 23:15:10 +0000 |
commit | c22d1738936eb5c80452a889b04f6220d041b946 (patch) | |
tree | 11768fad89cd4ad03b8fc9a70d2d1244af35d166 /pkgs/tools/system/bootchart | |
parent | 7fa0d739666356b04d03ebfd7d834d1c981ff05d (diff) | |
download | nixlib-c22d1738936eb5c80452a889b04f6220d041b946.tar nixlib-c22d1738936eb5c80452a889b04f6220d041b946.tar.gz nixlib-c22d1738936eb5c80452a889b04f6220d041b946.tar.bz2 nixlib-c22d1738936eb5c80452a889b04f6220d041b946.tar.lz nixlib-c22d1738936eb5c80452a889b04f6220d041b946.tar.xz nixlib-c22d1738936eb5c80452a889b04f6220d041b946.tar.zst nixlib-c22d1738936eb5c80452a889b04f6220d041b946.zip |
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
Diffstat (limited to 'pkgs/tools/system/bootchart')
-rw-r--r-- | pkgs/tools/system/bootchart/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/system/bootchart/default.nix b/pkgs/tools/system/bootchart/default.nix new file mode 100644 index 000000000000..24a1558e901d --- /dev/null +++ b/pkgs/tools/system/bootchart/default.nix @@ -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+"; + }; + +} |