bootchart: use python2

This commit is contained in:
Frederik Rietdijk 2016-11-25 09:35:51 +01:00
parent e1cd8f0f96
commit 2445119d5a

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, lib, pkgconfig, glib, gtk2, python27, pythonPackages }:
{stdenv, fetchurl, lib, pkgconfig, glib, gtk2, python27, python2Packages }:
stdenv.mkDerivation rec {
version = "0.14.7";
@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb";
};
buildInputs = [ pkgconfig glib gtk2 python27 pythonPackages.wrapPython pythonPackages.pygtk ];
pythonPath = with pythonPackages; [ pygtk pycairo ];
buildInputs = [ pkgconfig glib gtk2 python2Packages.python python2Packages.wrapPython python2Packages.pygtk ];
pythonPath = with python2Packages; [ pygtk pycairo ];
installPhase = ''
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/python2.7
make install DESTDIR=$out BINDIR=/bin PY_LIBDIR=/lib/${python2Packages.python.libPrefix}
wrapProgram $out/bin/pybootchartgui \
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
'';