2016-11-25 08:35:51 +00:00
|
|
|
{stdenv, fetchurl, lib, pkgconfig, glib, gtk2, python27, python2Packages }:
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-10-20 11:30:21 +01:00
|
|
|
version = "0.14.7";
|
|
|
|
name = "bootchart-${version}";
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-20 11:30:21 +01:00
|
|
|
url = "https://github.com/mmeeks/bootchart/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb";
|
2009-10-29 23:15:10 +00:00
|
|
|
};
|
|
|
|
|
2016-11-25 08:35:51 +00:00
|
|
|
buildInputs = [ pkgconfig glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|