Skip to content

Commit

Permalink
gnome-tweak-tools: fix missing gi module
Browse files Browse the repository at this point in the history
I changed from python3Packages to python2Packages because I couldn't
make it work with python3Packages. This seems similar to:
NixOS#16747 (comment)
  • Loading branch information
DamienCassou committed Jul 12, 2016
1 parent 81810c6 commit a347b94
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions pkgs/desktops/gnome-3/3.20/misc/gnome-tweak-tool/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ stdenv, intltool, fetchurl, python, pygobject3, atk
{ stdenv, intltool, fetchurl, atk
, pkgconfig, gtk3, glib, libsoup
, bash, makeWrapper, itstool, libxml2, python3Packages
, gnome3, librsvg, gdk_pixbuf, file, libnotify }:
, bash, makeWrapper, itstool, libxml2, python2Packages
, gnome3, librsvg, gdk_pixbuf, file, libnotify, gobjectIntrospection, wrapGAppsHook }:

stdenv.mkDerivation rec {
let
python = python2Packages.python.withPackages ( ps: with ps; [ pygobject3 ] );
in stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;

doCheck = true;
Expand All @@ -15,17 +17,15 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig gtk3 glib intltool itstool libxml2
gnome3.gsettings_desktop_schemas makeWrapper file
gdk_pixbuf gnome3.defaultIconTheme librsvg
python pygobject3 libnotify gnome3.gnome_shell
libnotify gnome3.gnome_shell
libsoup gnome3.gnome_settings_daemon gnome3.nautilus
gnome3.gnome_desktop ];

preFixup = ''
wrapProgram "$out/bin/gnome-tweak-tool" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--suffix XDG_DATA_DIRS : "${gtk3}/share:${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
'';
gnome3.gnome_desktop wrapGAppsHook ];

propagatedBuildInputs = [ python gobjectIntrospection ];

PYTHONPATH = "$out/${python.python.sitePackages}";

wrapPrefixVariables = [ "PYTHONPATH" ];

patches = [
./find_gsettings.patch
Expand Down

0 comments on commit a347b94

Please sign in to comment.