bb5b50588c
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib, stdenv, cmake, extra-cmake-modules, plasma-framework, kwindowsystem, redshift, fetchFromGitHub, }:
|
|
|
|
let version = "1.0.18"; in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "redshift-plasma-applet";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kotelnik";
|
|
repo = "plasma-applet-redshift-control";
|
|
rev = "v${version}";
|
|
sha256 = "122nnbafa596rxdxlfshxk45lzch8c9342bzj7kzrsjkjg0xr9pq";
|
|
};
|
|
|
|
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'"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
];
|
|
|
|
buildInputs = [
|
|
plasma-framework
|
|
kwindowsystem
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
meta = with 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 zraexy ];
|
|
};
|
|
}
|