From e2b74824d75c763e49fe3ef555a18dfe797e0a56 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Thu, 2 Feb 2017 23:31:36 +1030 Subject: [PATCH] gnome-tweak-tool: trick autoconf into using python2 --- .../gnome-3/3.22/misc/gnome-tweak-tool/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/default.nix b/pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/default.nix index e6c4b8c8202..f75cdd0e83e 100644 --- a/pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/default.nix +++ b/pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/default.nix @@ -12,6 +12,15 @@ in stdenv.mkDerivation rec { propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ]; + # Make sure that Python 2 is first in $PATH because gnome3.gnome_shell + # propagates python3Packages.python. If we do not do this, autoconf will use + # Python 3 instead which gnome-tweak-tool does not support at this time. See: + # https://github.com/NixOS/nixpkgs/issues/21851 + # https://github.com/NixOS/nixpkgs/pull/22370 + preConfigure = '' + PATH="${python}/bin:$PATH" + ''; + makeFlags = [ "DESTDIR=/" ]; buildInputs = [ pkgconfig gtk3 glib intltool itstool libxml2