mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
963 B
Nix
32 lines
963 B
Nix
{stdenv, fetchFromGitHub, pkgconfig, glib, gtk2, python2Packages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.14.8";
|
|
pname = "bootchart";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mmeeks";
|
|
repo = "bootchart";
|
|
rev = version;
|
|
sha256 = "12ja2hp6f49416zfjdx0kjfmlkh9wl9b7wz7gk372kps4gjnypqx";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
|
|
pythonPath = with python2Packages; [ pygtk pycairo ];
|
|
|
|
installPhase = ''
|
|
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;
|
|
};
|
|
|
|
}
|