Merge pull request #8611 from nckx/update-redshift
redshift: 1.9.1 -> 1.10
This commit is contained in:
commit
632e3f51f5
@ -1,35 +1,30 @@
|
|||||||
{ fetchurl, stdenv, libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python
|
{ fetchurl, stdenv, gettext, geoclue, intltool, makeWrapper
|
||||||
, randrproto, xcbutil, xf86vidmodeproto, autoconf, automake, gettext, glib
|
, pkgconfig , python, pygobject3, pyxdg }:
|
||||||
, GConf, dbus, dbus_glib, makeWrapper, gtk, pygtk, pyxdg, geoclue }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let version = "1.10"; in
|
||||||
version = "1.9.1";
|
stdenv.mkDerivation {
|
||||||
name = "redshift-${version}";
|
name = "redshift-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/jonls/redshift/archive/v${version}.tar.gz";
|
sha256 = "19pfk9il5x2g2ivqix4a555psz8mj3m0cvjwnjpjvx0llh5fghjv";
|
||||||
sha256 = "0rj7lyg4ikwpk1hr1k2bgk9gjqvvv51z8hydsgpx2k2lqdv6lqri";
|
url = "https://github.com/jonls/redshift/releases/download/v${version}/redshift-${version}.tar.xz";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libX11 libXrandr libXxf86vm libxcb pkgconfig python randrproto xcbutil
|
gettext intltool makeWrapper pkgconfig python pygobject3 pyxdg
|
||||||
xf86vidmodeproto autoconf automake gettext glib GConf dbus dbus_glib
|
|
||||||
makeWrapper gtk pygtk pyxdg geoclue
|
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
./bootstrap
|
|
||||||
'';
|
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
substituteInPlace src/redshift-gtk/redshift-gtk python --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
|
substituteInPlace src/redshift-gtk/redshift-gtk python \
|
||||||
|
--replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
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
|
wrapProgram "$out/bin/redshift-gtk" --prefix PYTHONPATH : $PYTHONPATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "changes the color temperature of your screen gradually";
|
inherit version;
|
||||||
|
description = "Gradually change screen color temperature";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
The color temperature is set according to the position of the
|
The color temperature is set according to the position of the
|
||||||
sun. A different color temperature is set during night and
|
sun. A different color temperature is set during night and
|
||||||
@ -37,9 +32,9 @@ stdenv.mkDerivation rec {
|
|||||||
temperature transitions smoothly from night to daytime
|
temperature transitions smoothly from night to daytime
|
||||||
temperature to allow your eyes to slowly adapt.
|
temperature to allow your eyes to slowly adapt.
|
||||||
'';
|
'';
|
||||||
license = stdenv.lib.licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
homepage = http://jonls.dk/redshift;
|
homepage = http://jonls.dk/redshift;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.mornfall ];
|
maintainers = with maintainers; [ mornfall nckx ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14058,10 +14058,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
redshift = callPackage ../applications/misc/redshift {
|
redshift = callPackage ../applications/misc/redshift {
|
||||||
inherit (xorg) libX11 libXrandr libxcb randrproto libXxf86vm
|
inherit (python3Packages) python pygobject3 pyxdg;
|
||||||
xf86vidmodeproto;
|
|
||||||
inherit (gnome) GConf;
|
|
||||||
inherit (pythonPackages) pyxdg;
|
|
||||||
geoclue = geoclue2;
|
geoclue = geoclue2;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user