diff --git a/pkgs/tools/system/bootchart/default.nix b/pkgs/tools/system/bootchart/default.nix index b5f1af6dfeda..34da8d400811 100644 --- a/pkgs/tools/system/bootchart/default.nix +++ b/pkgs/tools/system/bootchart/default.nix @@ -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)" '';