summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2020-12-14 16:03:05 +0100
committerMichael Weiss <dev.primeos@gmail.com>2020-12-14 16:30:28 +0100
commit50a44c44c407f9d24252392326a725ed08779d2d (patch)
treea8745b567e514a768aaf5a8e5a694d85e0a82738 /pkgs/applications/misc
parent3ef9799490c6906fa921af1bf7b9473a9915c06f (diff)
gammastep: 2.0.5 -> 2.0.6
Switch from libappindicator to the newer libayatana-appindicator and enable the optional systemd user unit and AppArmor support.
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/redshift/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix
index a450b2e3eb77..4d0c168962f9 100644
--- a/pkgs/applications/misc/redshift/default.nix
+++ b/pkgs/applications/misc/redshift/default.nix
@@ -10,7 +10,7 @@
, withGeolocation ? true
, withCoreLocation ? withGeolocation && stdenv.isDarwin, CoreLocation, Foundation, Cocoa
, withGeoclue ? withGeolocation && stdenv.isLinux, geoclue
-, withAppIndicator ? true, libappindicator
+, withAppIndicator ? true, libappindicator, libayatana-appindicator
}:
let
@@ -41,6 +41,9 @@ let
"--enable-drm=${if withDrm then "yes" else "no"}"
"--enable-quartz=${if withQuartz then "yes" else "no"}"
"--enable-corelocation=${if withCoreLocation then "yes" else "no"}"
+ ] ++ stdenv.lib.optionals (pname == "gammastep") [
+ "--with-systemduserunitdir=${placeholder "out"}/share/systemd/user/"
+ "--enable-apparmor"
];
buildInputs = [
@@ -52,7 +55,9 @@ let
++ stdenv.lib.optional withDrm libdrm
++ stdenv.lib.optional withQuartz ApplicationServices
++ stdenv.lib.optionals withCoreLocation [ CoreLocation Foundation Cocoa ]
- ++ stdenv.lib.optional withAppIndicator libappindicator
+ ++ stdenv.lib.optional withAppIndicator (if (pname != "gammastep")
+ then libappindicator
+ else libayatana-appindicator)
;
pythonPath = [ pygobject3 pyxdg ];
@@ -127,13 +132,13 @@ rec {
gammastep = mkRedshift rec {
pname = "gammastep";
- version = "2.0.5";
+ version = "2.0.6";
src = fetchFromGitLab {
owner = "chinstrap";
repo = pname;
rev = "v${version}";
- sha256 = "1l3x4gnichwzbb0529bhm723xpryn5svhhsfdiwlw122q1vmz2q7";
+ sha256 = "00s457yajnm7vq6jfanyri52pq000jbyjiy6wz2i3f0rq7cc01ya";
};
meta = redshift.meta // {