diff --git a/pkgs/tools/wayland/gtklock/powerbar-module.nix b/pkgs/tools/wayland/gtklock/powerbar-module.nix new file mode 100644 index 000000000000..ce5c44a41874 --- /dev/null +++ b/pkgs/tools/wayland/gtklock/powerbar-module.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, gtk3 +}: + +stdenv.mkDerivation rec { + pname = "gtklock-powerbar-module"; + version = "2.0.1"; + + src = fetchFromGitHub { + owner = "jovanlanik"; + repo = pname; + rev = "v${version}"; + hash = "sha256-Ev6vjtvUSqP/+xTDRAqSYJ436WhZUtFRxSP7LoSK00w="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ gtk3 ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Gtklock module adding power controls to the lockscreen"; + homepage = "https://github.com/jovanlanik/gtklock-powerbar-module"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ aleksana ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac4d9a41ec00..d84f8836477b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30363,6 +30363,8 @@ with pkgs; gtklock-playerctl-module = callPackage ../tools/wayland/gtklock/playerctl-module.nix { }; + gtklock-powerbar-module = callPackage ../tools/wayland/gtklock/powerbar-module.nix { }; + guardian-agent = callPackage ../tools/networking/guardian-agent { }; gv = callPackage ../applications/misc/gv { };