pop-launcher-plugin-brightness: init at 2022-08-07

This commit is contained in:
Gabriel Arazas 2022-08-07 13:28:59 +08:00
parent 823da5ed9c
commit 8bb03a5c4d
2 changed files with 31 additions and 0 deletions

View File

@ -48,6 +48,7 @@ let
neuwaita-icon-theme = callPackage ./neuwaita-icon-theme { };
onagre = callPackage ./onagre { };
pop-launcher = callPackage ./pop-launcher.nix { };
pop-launcher-plugin-brightness = callPackage ./pop-launcher-plugin-brightness { };
pop-launcher-plugin-duckduckgo-bangs =
callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { };
pop-launcher-plugin-jetbrains = callPackage ./pop-launcher-plugin-jetbrains { };

View File

@ -0,0 +1,30 @@
{ stdenv, lib, fetchFromGitHub, brightnessctl, python3Packages }:
python3Packages.buildPythonPackage rec {
pname = "pop-launcher-plugin-brightness";
version = "2022-08-07";
format = "other";
src = fetchFromGitHub {
owner = "lucas-dclrcq";
repo = "pop-launcher-brightness-plugin";
rev = "d77027a7f99061f52875f60b6aae10efd3163863";
sha256 = "sha256-5XUJx68N779MdYd1YNYi1QkBWRmgsrmXQblEciSzsiA=";
};
dontBuild = true;
dontConfigure = true;
runtimeDependencies = [ brightnessctl ];
installPhase = ''
install -Dm644 plugin.ron -t $out/share/pop-launcher/plugins/bright
install -Dm755 bright -t $out/share/pop-launcher/plugins/bright
'';
meta = with lib; {
homepage = "https://github.com/lucas-dclrcq/pop-launcher-brightness-plugin";
description = "Control your screen brightness via pop-launcher";
# It doesn't have a license so it is unfree by default.
};
}