2015-10-20 12:30:21 +02:00
|
|
|
{stdenv, fetchurl, lib, pkgconfig, glib, gtk, python27, pythonPackages }:
|
2009-10-30 00:15:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-10-20 12:30:21 +02:00
|
|
|
version = "0.14.7";
|
|
|
|
name = "bootchart-${version}";
|
2009-10-30 00:15:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-20 12:30:21 +02:00
|
|
|
url = "https://github.com/mmeeks/bootchart/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb";
|
2009-10-30 00:15:10 +01:00
|
|
|
};
|
|
|
|
|
2015-10-20 12:30:21 +02:00
|
|
|
buildInputs = [ pkgconfig glib gtk python27 pythonPackages.wrapPython pythonPackages.pygtk ];
|
|
|
|
pythonPath = with pythonPackages; [ pygtk pycairo ];
|
2009-10-30 00:15:10 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-10-20 12:30:21 +02:00
|
|
|
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/python2.7
|
|
|
|
wrapProgram $out/bin/pybootchartgui \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
|
2009-10-30 00:15:10 +01:00
|
|
|
'';
|
|
|
|
|
2015-05-27 21:56:04 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-10-30 00:15:10 +01:00
|
|
|
homepage = http://www.bootchart.org/;
|
|
|
|
description = "Performance analysis and visualization of the GNU/Linux boot process";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2009-10-30 00:15:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|