at 18.03-beta 65 lines 1.7 kB view raw
1{ stdenv, fetchFromGitHub, fetchurl, autoconf, automake, gettext, intltool 2, libtool, pkgconfig, wrapGAppsHook, wrapPython, geoclue2, gobjectIntrospection 3, gtk3, python, pygobject3, pyxdg, libdrm, libxcb, hicolor-icon-theme }: 4 5stdenv.mkDerivation rec { 6 name = "redshift-${version}"; 7 version = "1.11"; 8 9 src = fetchFromGitHub { 10 owner = "jonls"; 11 repo = "redshift"; 12 rev = "v${version}"; 13 sha256 = "0jfi4wqklqw2rm0r2xwalyzir88zkdvqj0z5id0l5v20vsrfiiyj"; 14 }; 15 16 patches = [ 17 # https://github.com/jonls/redshift/pull/575 18 ./575.patch 19 ]; 20 21 nativeBuildInputs = [ 22 autoconf 23 automake 24 gettext 25 intltool 26 libtool 27 pkgconfig 28 wrapGAppsHook 29 wrapPython 30 ]; 31 32 buildInputs = [ 33 geoclue2 34 gobjectIntrospection 35 gtk3 36 libdrm 37 libxcb 38 python 39 hicolor-icon-theme 40 ]; 41 42 pythonPath = [ pygobject3 pyxdg ]; 43 44 preConfigure = "./bootstrap"; 45 46 postFixup = "wrapPythonPrograms"; 47 48 enableParallelBuilding = true; 49 50 meta = with stdenv.lib; { 51 description = "Screen color temperature manager"; 52 longDescription = '' 53 Redshift adjusts the color temperature according to the position 54 of the sun. A different color temperature is set during night and 55 daytime. During twilight and early morning, the color temperature 56 transitions smoothly from night to daytime temperature to allow 57 your eyes to slowly adapt. At night the color temperature should 58 be set to match the lamps in your room. 59 ''; 60 license = licenses.gpl3Plus; 61 homepage = http://jonls.dk/redshift; 62 platforms = platforms.linux; 63 maintainers = with maintainers; [ yegortimoshenko ]; 64 }; 65}