2016-11-25 09:35:51 +01:00
|
|
|
{stdenv, fetchurl, lib, pkgconfig, glib, gtk2, python27, python2Packages }:
|
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
|
|
|
};
|
|
|
|
|
2016-11-25 09:35:51 +01:00
|
|
|
buildInputs = [ pkgconfig glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|