at 17.09-beta 28 lines 957 B view raw
1{stdenv, fetchurl, lib, pkgconfig, glib, gtk2, python27, python2Packages }: 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 gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ]; 13 pythonPath = with python2Packages; [ pygtk pycairo ]; 14 15 installPhase = '' 16 make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/${python2Packages.python.libPrefix} 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}