diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-09-29 02:01:33 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2015-09-29 03:21:35 +0200 |
commit | 19f2be45233fe8556d7d5291efdd7bbe5ffa9cf2 (patch) | |
tree | 14e926127670b7a11d7a13112718babb23928312 /pkgs/applications/misc/redshift/default.nix | |
parent | 8ce79e0ef02b85a1a071ecf2773fe594d50677b8 (diff) |
redshift: add gtk3 & correctly set GI_TYPELIB_PATH
This should fix https://github.com/NixOS/nixpkgs/issues/10097.
Diffstat (limited to 'pkgs/applications/misc/redshift/default.nix')
-rw-r--r-- | pkgs/applications/misc/redshift/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix index 68b951577bd00..9dc5166dd0ca5 100644 --- a/pkgs/applications/misc/redshift/default.nix +++ b/pkgs/applications/misc/redshift/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, gettext, intltool, pkgconfig, makeWrapper -, geoclue, python, pygobject3, pyxdg +, geoclue, python, pygobject3, gtk3, pyxdg , libdrm, libX11, libxcb, libXxf86vm , guiSupport ? true , drmSupport ? true @@ -19,7 +19,7 @@ stdenv.mkDerivation { }; buildInputs = [ geoclue ] - ++ stdenv.lib.optionals guiSupport [ python pygobject3 pyxdg ] + ++ stdenv.lib.optionals guiSupport [ gtk3 python pygobject3 pyxdg ] ++ stdenv.lib.optionals drmSupport [ libdrm ] ++ stdenv.lib.optionals randrSupport [ libxcb ] ++ stdenv.lib.optionals vidModeSupport [ libX11 libXxf86vm ]; @@ -38,7 +38,9 @@ stdenv.mkDerivation { ''; postInstall = stdenv.lib.optionalString guiSupport '' - wrapProgram "$out/bin/redshift-gtk" --prefix PYTHONPATH : "$PYTHONPATH" + wrapProgram "$out/bin/redshift-gtk" \ + --prefix PYTHONPATH : "$PYTHONPATH" \ + --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" ''; meta = with stdenv.lib; { |