2009-10-30 00:15:10 +01:00
|
|
|
{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 = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/sbin $out/etc
|
2009-10-30 00:15:10 +01:00
|
|
|
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+";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|