mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
8eb4d2afbc
- There is no such thing as KDE 5
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, cmake, plasma-framework, 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
|
|
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 ];
|
|
};
|
|
}
|