2017-08-29 09:30:38 +02:00
|
|
|
{ stdenv, cmake, extra-cmake-modules, plasma-framework, kwindowsystem, redshift, fetchFromGitHub, }:
|
2017-02-06 00:13:06 +01:00
|
|
|
|
2017-07-02 10:25:19 +02:00
|
|
|
let version = "1.0.18"; in
|
2017-02-06 00:13:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "redshift-plasma-applet";
|
|
|
|
inherit version;
|
2017-02-06 00:13:06 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kotelnik";
|
|
|
|
repo = "plasma-applet-redshift-control";
|
|
|
|
rev = "v${version}";
|
2017-07-02 10:25:19 +02:00
|
|
|
sha256 = "122nnbafa596rxdxlfshxk45lzch8c9342bzj7kzrsjkjg0xr9pq";
|
2017-02-06 00:13:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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'"
|
|
|
|
'';
|
|
|
|
|
2017-07-02 10:25:19 +02:00
|
|
|
nativeBuildInputs = [
|
2017-02-06 00:13:06 +01:00
|
|
|
cmake
|
2017-07-02 10:25:19 +02:00
|
|
|
extra-cmake-modules
|
2017-02-06 00:13:06 +01:00
|
|
|
];
|
|
|
|
|
2017-08-29 09:30:38 +02:00
|
|
|
buildInputs = [
|
|
|
|
plasma-framework
|
|
|
|
kwindowsystem
|
|
|
|
];
|
2017-02-06 00:13:06 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "KDE Plasma 5 widget for controlling Redshift";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/kotelnik/plasma-applet-redshift-control";
|
2017-02-06 00:13:06 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2017-07-02 10:25:19 +02:00
|
|
|
maintainers = with maintainers; [ benley zraexy ];
|
2017-02-06 00:13:06 +01:00
|
|
|
};
|
|
|
|
}
|