nixpkgs/pkgs/tools/system/bootchart/default.nix

32 lines
973 B
Nix
Raw Normal View History

{stdenv, fetchFromGitHub, pkgconfig, glib, gtk2, python2Packages }:
stdenv.mkDerivation rec {
2018-10-08 12:47:30 +01:00
version = "0.14.8";
name = "bootchart-${version}";
src = fetchFromGitHub {
owner = "mmeeks";
repo = "bootchart";
rev = version;
2018-10-08 12:47:30 +01:00
sha256 = "12ja2hp6f49416zfjdx0kjfmlkh9wl9b7wz7gk372kps4gjnypqx";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
2016-11-25 08:35:51 +00:00
pythonPath = with python2Packages; [ pygtk pycairo ];
installPhase = ''
2016-11-25 08:35:51 +00:00
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/${python2Packages.python.libPrefix}
wrapProgram $out/bin/pybootchartgui \
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
'';
meta = with stdenv.lib; {
homepage = http://www.bootchart.org/;
description = "Performance analysis and visualization of the GNU/Linux boot process";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}