Skip to content

Commit

Permalink
redshift-plasma-applet: init at 1.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
benley committed Feb 5, 2017
1 parent b5957ea commit 962c443
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/applications/misc/redshift-plasma-applet/default.nix
@@ -0,0 +1,40 @@
{ stdenv, cmake, kde5, redshift, fetchFromGitHub, ... }:

let version = "1.0.17"; in

stdenv.mkDerivation {
name = "redshift-plasma-applet-${version}";

src = fetchFromGitHub {
owner = "kotelnik";
repo = "plasma-applet-redshift-control";
rev = "v${version}";
sha256 = "1lp1rb7i6c18lrgqxsglbvyvzh71qbm591abrbhw675ii0ca9hgj";
};

patchPhase = ''
substituteInPlace package/contents/ui/main.qml \
--replace "redshiftCommand: 'redshift'" \
"redshiftCommand: '${redshift}/bin/redshift'" \
--replace "redshiftOneTimeCommand: 'redshift -O " \
"redshiftOneTimeCommand: '${redshift}/bin/redshift -O "
substituteInPlace package/contents/ui/config/ConfigAdvanced.qml \
--replace "'redshift -V'" \
"'${redshift}/bin/redshift -V'"
'';

buildInputs = [
cmake
kde5.plasma-framework
];


meta = with stdenv.lib; {
description = "KDE Plasma 5 widget for controlling Redshift";
homepage = https://github.com/kotelnik/plasma-applet-redshift-control;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ benley ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -16766,6 +16766,8 @@ with pkgs;
inherit (python3Packages) python pygobject3 pyxdg;
};

redshift-plasma-applet = callPackage ../applications/misc/redshift-plasma-applet { };

orion = callPackage ../misc/themes/orion {};

albatross = callPackage ../misc/themes/albatross { };
Expand Down

0 comments on commit 962c443

Please sign in to comment.