diff options
author | Jascha Geerds <jascha@jgeerds.name> | 2017-02-22 22:06:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 22:06:21 +0100 |
commit | 77670c04c7396bbdf62b36561e8e9b2a88b3b4dc (patch) | |
tree | 0ccba9c5ebc58a3a3a51bd5aa3013e88ac033c29 | |
parent | f764ccc7f1c0fa28bb489a54bc15d3ce6e2e4f4e (diff) | |
parent | c83dfedaa26d57b7c5e5a22d0375d9b8d00d0fbe (diff) | |
download | nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.tar nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.tar.gz nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.tar.bz2 nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.tar.lz nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.tar.xz nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.tar.zst nixpkgs-77670c04c7396bbdf62b36561e8e9b2a88b3b4dc.zip |
Merge pull request #22937 from jgeerds/gnome
gnome-shell, gnome-tweak-tool: Don't propagate python
-rw-r--r-- | pkgs/desktops/gnome-3/3.22/core/gnome-shell/default.nix | 12 | ||||
-rw-r--r-- | pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/default.nix | 18 |
2 files changed, 9 insertions, 21 deletions
diff --git a/pkgs/desktops/gnome-3/3.22/core/gnome-shell/default.nix b/pkgs/desktops/gnome-3/3.22/core/gnome-shell/default.nix index dccdb8a5a5f..8f77b7e5e3b 100644 --- a/pkgs/desktops/gnome-3/3.22/core/gnome-shell/default.nix +++ b/pkgs/desktops/gnome-3/3.22/core/gnome-shell/default.nix @@ -7,7 +7,9 @@ # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/gnome-shell-3.10.2.1.ebuild?revision=1.3&view=markup -stdenv.mkDerivation rec { +let + pythonEnv = python3Packages.python.withPackages ( ps: with ps; [ pygobject3 ] ); +in stdenv.mkDerivation rec { inherit (import ./src.nix fetchurl) name src; # Needed to find /etc/NetworkManager/VPN @@ -23,9 +25,8 @@ stdenv.mkDerivation rec { defaultIconTheme sqlite gnome3.gnome-bluetooth libgweather # not declared at build time, but typelib is needed at runtime gnome3.gnome-clocks # schemas needed - at_spi2_core upower ibus gnome_desktop telepathy_logger gnome3.gnome_settings_daemon ]; - - propagatedBuildInputs = [ python3Packages.pygobject3 python3Packages.python gobjectIntrospection ]; + at_spi2_core upower ibus gnome_desktop telepathy_logger gnome3.gnome_settings_daemon + pythonEnv gobjectIntrospection ]; installFlags = [ "keysdir=$(out)/share/gnome-control-center/keybindings" ]; @@ -42,9 +43,6 @@ stdenv.mkDerivation rec { --prefix XDG_DATA_DIRS : "${gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS" \ --suffix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" - wrapProgram "$out/bin/gnome-shell-extension-tool" \ - --prefix PYTHONPATH : "${python3Packages.pygobject3}/${python3Packages.python.sitePackages}:$PYTHONPATH" - wrapProgram "$out/libexec/gnome-shell-calendar-server" \ --prefix XDG_DATA_DIRS : "${evolution_data_server}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" 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 f75cdd0e83e..5a1baa5e330 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 @@ -4,7 +4,7 @@ , gnome3, librsvg, gdk_pixbuf, file, libnotify, gobjectIntrospection, wrapGAppsHook }: let - python = python2Packages.python.withPackages ( ps: with ps; [ pygobject3 ] ); + pythonEnv = python2Packages.python.withPackages ( ps: with ps; [ pygobject3 ] ); in stdenv.mkDerivation rec { inherit (import ./src.nix fetchurl) name src; @@ -12,15 +12,6 @@ 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 @@ -28,11 +19,10 @@ in stdenv.mkDerivation rec { gdk_pixbuf gnome3.defaultIconTheme librsvg libnotify gnome3.gnome_shell libsoup gnome3.gnome_settings_daemon gnome3.nautilus - gnome3.gnome_desktop wrapGAppsHook ]; - - propagatedBuildInputs = [ python gobjectIntrospection ]; + gnome3.gnome_desktop wrapGAppsHook + python2Packages.pygobject3.dev pythonEnv gobjectIntrospection ]; - PYTHONPATH = "$out/${python.python.sitePackages}"; + PYTHONPATH = "$out/${pythonEnv.python.sitePackages}"; wrapPrefixVariables = [ "PYTHONPATH" ]; |