From 2445119d5a0ac3b7dd2dd52e6b9d485bbb4ee536 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 25 Nov 2016 09:35:51 +0100 Subject: [PATCH] bootchart: use python2 --- pkgs/tools/system/bootchart/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/system/bootchart/default.nix b/pkgs/tools/system/bootchart/default.nix index b5f1af6dfed..34da8d40081 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)" '';