lol

Merge pull request #22476 from benley/redshift-kde

redshift-plasma-applet: init at 1.0.17

authored by

Benjamin Staffin and committed by
GitHub
9dc2cb2e 0f948f5c

+42
+40
pkgs/applications/misc/redshift-plasma-applet/default.nix
··· 1 + { stdenv, cmake, kde5, redshift, fetchFromGitHub, ... }: 2 + 3 + let version = "1.0.17"; in 4 + 5 + stdenv.mkDerivation { 6 + name = "redshift-plasma-applet-${version}"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "kotelnik"; 10 + repo = "plasma-applet-redshift-control"; 11 + rev = "v${version}"; 12 + sha256 = "1lp1rb7i6c18lrgqxsglbvyvzh71qbm591abrbhw675ii0ca9hgj"; 13 + }; 14 + 15 + patchPhase = '' 16 + substituteInPlace package/contents/ui/main.qml \ 17 + --replace "redshiftCommand: 'redshift'" \ 18 + "redshiftCommand: '${redshift}/bin/redshift'" \ 19 + --replace "redshiftOneTimeCommand: 'redshift -O " \ 20 + "redshiftOneTimeCommand: '${redshift}/bin/redshift -O " 21 + 22 + substituteInPlace package/contents/ui/config/ConfigAdvanced.qml \ 23 + --replace "'redshift -V'" \ 24 + "'${redshift}/bin/redshift -V'" 25 + ''; 26 + 27 + buildInputs = [ 28 + cmake 29 + kde5.plasma-framework 30 + ]; 31 + 32 + 33 + meta = with stdenv.lib; { 34 + description = "KDE Plasma 5 widget for controlling Redshift"; 35 + homepage = https://github.com/kotelnik/plasma-applet-redshift-control; 36 + license = licenses.gpl2Plus; 37 + platforms = platforms.linux; 38 + maintainers = with maintainers; [ benley ]; 39 + }; 40 + }
+2
pkgs/top-level/all-packages.nix
··· 16769 16769 inherit (python3Packages) python pygobject3 pyxdg; 16770 16770 }; 16771 16771 16772 + redshift-plasma-applet = callPackage ../applications/misc/redshift-plasma-applet { }; 16773 + 16772 16774 orion = callPackage ../misc/themes/orion {}; 16773 16775 16774 16776 albatross = callPackage ../misc/themes/albatross { };