1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

redshift: add gtk3 & correctly set GI_TYPELIB_PATH

This should fix https://github.com/NixOS/nixpkgs/issues/10097.
This commit is contained in:
Tobias Geerinckx-Rice 2015-09-29 02:01:33 +02:00
parent 8ce79e0ef0
commit 19f2be4523

View file

@ -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; {