redshift: update to 1.8 and fix redshift-gtk script
This commit is contained in:
parent
e1c9c133b0
commit
ff8e06d4cc
2 changed files with 28 additions and 10 deletions
|
@ -1,18 +1,34 @@
|
|||
{ fetchurl, stdenv,
|
||||
libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python,
|
||||
randrproto, xcbutil, xf86vidmodeproto }:
|
||||
{ fetchurl, stdenv, libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python
|
||||
, randrproto, xcbutil, xf86vidmodeproto, autoconf, automake, gettext, glib
|
||||
, GConf, dbus, dbus_glib, makeWrapper, gtk, pygtk, pyxdg }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "redshift";
|
||||
version = "1.7";
|
||||
name = "${pname}-${version}";
|
||||
version = "1.8";
|
||||
name = "redshift-${version}";
|
||||
src = fetchurl {
|
||||
url = "http://launchpad.net/${pname}/trunk/${version}/+download/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1j0hs0vnlic90cf4bryn11n4ani1x2s5l8z6ll3fmrlw98ykrylv";
|
||||
url = "https://github.com/jonls/redshift/archive/v${version}.tar.gz";
|
||||
sha256 = "1srj2dwy32h71iqikb4ysv5ipclym80i9lys2ns8vjmclg7hj3vi";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libXrandr libXxf86vm libxcb pkgconfig python
|
||||
randrproto xcbutil xf86vidmodeproto ];
|
||||
buildInputs = [
|
||||
libX11 libXrandr libXxf86vm libxcb pkgconfig python randrproto xcbutil
|
||||
xf86vidmodeproto autoconf automake gettext glib GConf dbus dbus_glib
|
||||
makeWrapper gtk pygtk pyxdg
|
||||
# TODO:
|
||||
# geoclue
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
./bootstrap
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace src/redshift-gtk/redshift-gtk python --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/redshift-gtk" --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0:${pyxdg}/lib/${python.libPrefix}/site-packages/pyxdg:$out/lib/${python.libPrefix}/site-packages
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "changes the color temperature of your screen gradually";
|
||||
|
|
|
@ -9603,6 +9603,8 @@ let
|
|||
redshift = callPackage ../applications/misc/redshift {
|
||||
inherit (xorg) libX11 libXrandr libxcb randrproto libXxf86vm
|
||||
xf86vidmodeproto;
|
||||
inherit (gnome) GConf;
|
||||
inherit (pythonPackages) pyxdg;
|
||||
};
|
||||
|
||||
oxygen_gtk = callPackage ../misc/themes/gtk2/oxygen-gtk { };
|
||||
|
|
Loading…
Reference in a new issue