2018-10-08 13:43:13 +02:00
|
|
|
{stdenv, fetchFromGitHub, pkgconfig, glib, gtk2, python2Packages }:
|
2009-10-30 00:15:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-08 13:47:30 +02:00
|
|
|
version = "0.14.8";
|
2015-10-20 12:30:21 +02:00
|
|
|
name = "bootchart-${version}";
|
2009-10-30 00:15:10 +01:00
|
|
|
|
2018-10-08 13:43:13 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmeeks";
|
|
|
|
repo = "bootchart";
|
|
|
|
rev = version;
|
2018-10-08 13:47:30 +02:00
|
|
|
sha256 = "12ja2hp6f49416zfjdx0kjfmlkh9wl9b7wz7gk372kps4gjnypqx";
|
2009-10-30 00:15:10 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
|
2016-11-25 09:35:51 +01:00
|
|
|
pythonPath = with python2Packages; [ pygtk pycairo ];
|
2009-10-30 00:15:10 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2016-11-25 09:35:51 +01:00
|
|
|
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/${python2Packages.python.libPrefix}
|
2015-10-20 12:30:21 +02:00
|
|
|
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;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2009-10-30 00:15:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|