1{stdenv, fetchurl, lib, pkgconfig, glib, gtk, python27, pythonPackages }:
2
3stdenv.mkDerivation rec {
4 version = "0.14.7";
5 name = "bootchart-${version}";
6
7 src = fetchurl {
8 url = "https://github.com/mmeeks/bootchart/archive/${version}.tar.gz";
9 sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb";
10 };
11
12 buildInputs = [ pkgconfig glib gtk python27 pythonPackages.wrapPython pythonPackages.pygtk ];
13 pythonPath = with pythonPackages; [ pygtk pycairo ];
14
15 installPhase = ''
16 make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/python2.7
17 wrapProgram $out/bin/pybootchartgui \
18 --prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
19 '';
20
21 meta = with stdenv.lib; {
22 homepage = http://www.bootchart.org/;
23 description = "Performance analysis and visualization of the GNU/Linux boot process";
24 license = licenses.gpl2Plus;
25 platforms = platforms.linux;
26 };
27
28}