2018-10-08 12:43:13 +01:00
|
|
|
{stdenv, fetchFromGitHub, pkgconfig, glib, gtk2, python2Packages }:
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-08 12:47:30 +01:00
|
|
|
version = "0.14.8";
|
2015-10-20 11:30:21 +01:00
|
|
|
name = "bootchart-${version}";
|
2009-10-29 23:15:10 +00:00
|
|
|
|
2018-10-08 12:43:13 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmeeks";
|
|
|
|
repo = "bootchart";
|
|
|
|
rev = version;
|
2018-10-08 12:47:30 +01:00
|
|
|
sha256 = "12ja2hp6f49416zfjdx0kjfmlkh9wl9b7wz7gk372kps4gjnypqx";
|
2009-10-29 23:15:10 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
|
2016-11-25 08:35:51 +00:00
|
|
|
pythonPath = with python2Packages; [ pygtk pycairo ];
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2016-11-25 08:35:51 +00:00
|
|
|
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/${python2Packages.python.libPrefix}
|
2015-10-20 11:30:21 +01:00
|
|
|
wrapProgram $out/bin/pybootchartgui \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
|
2009-10-29 23:15:10 +00:00
|
|
|
'';
|
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-10-29 23:15:10 +00:00
|
|
|
homepage = http://www.bootchart.org/;
|
|
|
|
description = "Performance analysis and visualization of the GNU/Linux boot process";
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2009-10-29 23:15:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|