git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22476 from benley/redshift-kde

redshift-plasma-applet: init at 1.0.17

commit9dc2cb2e84069041eb4876d1eb44f5afbac46491 authorBenjamin Staffin <benley@gmail.com> dateTue 7 Feb 2017, 20:21 (10 years ago) parent0f948f5962c443
2 files changed+42
pkgs/applications/misc/redshift-plasma-applet/default.nix+40 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/redshift-plasma-applet/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv, cmake, kde5, redshift, fetchFromGitHub, ... }:
2+
3+let version = "1.0.17"; in
4+
5+stdenv.mkDerivation {
6+ name = "redshift-plasma-applet-${version}";
7+
8+ src = fetchFromGitHub {
9+ owner = "kotelnik";
10+ repo = "plasma-applet-redshift-control";
11+ rev = "v${version}";
12+ sha256 = "1lp1rb7i6c18lrgqxsglbvyvzh71qbm591abrbhw675ii0ca9hgj";
13+ };
14+
15+ patchPhase = ''
16+ substituteInPlace package/contents/ui/main.qml \
17+ --replace "redshiftCommand: 'redshift'" \
18+ "redshiftCommand: '${redshift}/bin/redshift'" \
19+ --replace "redshiftOneTimeCommand: 'redshift -O " \
20+ "redshiftOneTimeCommand: '${redshift}/bin/redshift -O "
21+
22+ substituteInPlace package/contents/ui/config/ConfigAdvanced.qml \
23+ --replace "'redshift -V'" \
24+ "'${redshift}/bin/redshift -V'"
25+ '';
26+
27+ buildInputs = [
28+ cmake
29+ kde5.plasma-framework
30+ ];
31+
32+
33+ meta = with stdenv.lib; {
34+ description = "KDE Plasma 5 widget for controlling Redshift";
35+ homepage = https://github.com/kotelnik/plasma-applet-redshift-control;
36+ license = licenses.gpl2Plus;
37+ platforms = platforms.linux;
38+ maintainers = with maintainers; [ benley ];
39+ };
40+}
pkgs/top-level/all-packages.nix+2
@@ -16769,6 +16769,8 @@ with pkgs;
1676916769 inherit (python3Packages) python pygobject3 pyxdg;
1677016770 };
1677116771
16772+ redshift-plasma-applet = callPackage ../applications/misc/redshift-plasma-applet { };
16773+
1677216774 orion = callPackage ../misc/themes/orion {};
1677316775
1677416776 albatross = callPackage ../misc/themes/albatross { };