summary refs log tree commit diff
path: root/pkgs/applications/misc/redshift
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-03 01:05:05 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-03 01:05:06 +0100
commit91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a (patch)
treedb2ad9d93678eaa463e23bd3eac0277310f2edfb /pkgs/applications/misc/redshift
parent4a4e9849e82392fa66576b2274f284a910309f9b (diff)
downloadnixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.tar
nixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.tar.gz
nixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.tar.bz2
nixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.tar.lz
nixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.tar.xz
nixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.tar.zst
nixpkgs-91fbdd3ee2aa9aed769520fefc8c5a2b8a1db60a.zip
redshift: 1.10 -> 1.11
Changes:
- Add option preserve for gamma adjustment methods (randr, vidmode,
  quartz, w32gdi) to apply redness on top of current gamma
  correction.
- Fix #158: Add redshift.desktop file to resolve an issue where
  Geoclue2 would not allow redshift to obtain the current location.
- Fix #263: Make sure that the child process is terminated when
  redshift-gtk exits.
- Fix #284: A sample configuation file has been added to the
  distribution tarball.
- Fix warning message in redshift-gtk that is some cases caused
  redshift-gtk to fail (#271)
- Fix #174: Use nanosleep() for sleeping to avoid high CPU load on
  platforms (NetBSD, ...) with limitations in usleep()
- Various updates to man page and translations.
Diffstat (limited to 'pkgs/applications/misc/redshift')
-rw-r--r--pkgs/applications/misc/redshift/default.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix
index ad2f5f74cce..abe25afda5f 100644
--- a/pkgs/applications/misc/redshift/default.nix
+++ b/pkgs/applications/misc/redshift/default.nix
@@ -7,18 +7,21 @@
 }:
 
 let
-  version = "1.10";
-  mkFlag = flag: name: if flag then "--enable-${name}" else "--disable-${name}";
+  version = "1.11";
+  mkFlag = flag: name: if flag
+    then "--enable-${name}"
+    else "--disable-${name}";
 in
 stdenv.mkDerivation {
   name = "redshift-${version}";
   src = fetchurl {
-    sha256 = "19pfk9il5x2g2ivqix4a555psz8mj3m0cvjwnjpjvx0llh5fghjv";
+    sha256 = "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh";
     url = "https://github.com/jonls/redshift/releases/download/v${version}/redshift-${version}.tar.xz";
   };
 
   buildInputs = [ geoclue2 ]
-    ++ stdenv.lib.optionals guiSupport [ hicolor_icon_theme gtk3 python pygobject3 pyxdg ]
+    ++ stdenv.lib.optionals guiSupport [ hicolor_icon_theme gtk3 python
+      pygobject3 pyxdg ]
     ++ stdenv.lib.optionals drmSupport [ libdrm ]
     ++ stdenv.lib.optionals randrSupport [ libxcb ]
     ++ stdenv.lib.optionals vidModeSupport [ libX11 libXxf86vm ];
@@ -31,6 +34,8 @@ stdenv.mkDerivation {
     (mkFlag vidModeSupport "vidmode")
   ];
 
+  enableParallelBuilding = true;
+
   preInstall = stdenv.lib.optionalString guiSupport ''
     substituteInPlace src/redshift-gtk/redshift-gtk \
       --replace "/usr/bin/env python3" "${python}/bin/${python.executable}"
@@ -41,6 +46,8 @@ stdenv.mkDerivation {
       --prefix PYTHONPATH : "$PYTHONPATH" \
       --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
       --prefix XDG_DATA_DIRS : "$out/share:${hicolor_icon_theme}/share"
+
+    install -Dm644 {.,$out/share/doc/redshift}/redshift.conf.sample
   '';
 
   meta = with stdenv.lib; {