2016-09-11 21:24:51 +00:00
|
|
|
{stdenv, fetchurl, lib, pkgconfig, glib, gtk2, python27, pythonPackages }:
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-10-20 10:30:21 +00:00
|
|
|
version = "0.14.7";
|
|
|
|
name = "bootchart-${version}";
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-20 10:30:21 +00:00
|
|
|
url = "https://github.com/mmeeks/bootchart/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb";
|
2009-10-29 23:15:10 +00:00
|
|
|
};
|
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
buildInputs = [ pkgconfig glib gtk2 python27 pythonPackages.wrapPython pythonPackages.pygtk ];
|
2015-10-20 10:30:21 +00:00
|
|
|
pythonPath = with pythonPackages; [ pygtk pycairo ];
|
2009-10-29 23:15:10 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-10-20 10:30:21 +00:00
|
|
|
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/python2.7
|
|
|
|
wrapProgram $out/bin/pybootchartgui \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
|
2009-10-29 23:15:10 +00:00
|
|
|
'';
|
|
|
|
|
2015-05-27 19:56:04 +00: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 17:20:29 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2009-10-29 23:15:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|