2015-07-02 18:04:18 +01:00
|
|
|
{ fetchurl, stdenv, gettext, geoclue, intltool, makeWrapper
|
|
|
|
, pkgconfig , python, pygobject3, pyxdg }:
|
2011-01-24 23:52:22 +00:00
|
|
|
|
2015-07-02 18:04:18 +01:00
|
|
|
let version = "1.10"; in
|
|
|
|
stdenv.mkDerivation {
|
2013-10-26 18:15:57 +01:00
|
|
|
name = "redshift-${version}";
|
2011-01-24 23:52:22 +00:00
|
|
|
src = fetchurl {
|
2015-07-02 18:04:18 +01:00
|
|
|
sha256 = "19pfk9il5x2g2ivqix4a555psz8mj3m0cvjwnjpjvx0llh5fghjv";
|
|
|
|
url = "https://github.com/jonls/redshift/releases/download/v${version}/redshift-${version}.tar.xz";
|
2011-01-24 23:52:22 +00:00
|
|
|
};
|
|
|
|
|
2013-10-26 18:15:57 +01:00
|
|
|
buildInputs = [
|
2015-07-02 18:04:18 +01:00
|
|
|
gettext intltool makeWrapper pkgconfig python pygobject3 pyxdg
|
2013-10-26 18:15:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
2015-07-02 18:04:18 +01:00
|
|
|
substituteInPlace src/redshift-gtk/redshift-gtk python \
|
|
|
|
--replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
|
2013-10-26 18:15:57 +01:00
|
|
|
'';
|
2015-06-14 15:15:30 +01:00
|
|
|
/*
|
2013-10-26 18:15:57 +01:00
|
|
|
postInstall = ''
|
2015-07-02 18:04:18 +01:00
|
|
|
wrapProgram "$out/bin/redshift-gtk" --prefix PYTHONPATH : $PYTHONPATH
|
2013-10-26 18:15:57 +01:00
|
|
|
'';
|
2015-06-14 15:15:30 +01:00
|
|
|
*/
|
2013-11-03 00:03:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-07-02 18:04:18 +01:00
|
|
|
inherit version;
|
|
|
|
description = "Gradually change screen color temperature";
|
2011-01-24 23:52:22 +00:00
|
|
|
longDescription = ''
|
|
|
|
The color temperature is set according to the position of the
|
|
|
|
sun. A different color temperature is set during night and
|
|
|
|
daytime. During twilight and early morning, the color
|
|
|
|
temperature transitions smoothly from night to daytime
|
|
|
|
temperature to allow your eyes to slowly adapt.
|
2015-07-02 18:04:18 +01:00
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
2014-09-13 12:51:39 +01:00
|
|
|
homepage = http://jonls.dk/redshift;
|
2013-11-03 00:03:45 +00:00
|
|
|
platforms = platforms.linux;
|
2015-07-02 18:04:18 +01:00
|
|
|
maintainers = with maintainers; [ mornfall nckx ];
|
2011-01-24 23:52:22 +00:00
|
|
|
};
|
2013-06-07 01:13:54 +01:00
|
|
|
}
|