Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redshift-plasma-applet: init at 1.0.17
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters