about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/wayland/gtklock/playerctl-module.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/wayland/gtklock/playerctl-module.nix')
-rw-r--r--nixpkgs/pkgs/tools/wayland/gtklock/playerctl-module.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/wayland/gtklock/playerctl-module.nix b/nixpkgs/pkgs/tools/wayland/gtklock/playerctl-module.nix
new file mode 100644
index 000000000000..8d2d760d46a1
--- /dev/null
+++ b/nixpkgs/pkgs/tools/wayland/gtklock/playerctl-module.nix
@@ -0,0 +1,34 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, pkg-config
+, gtk3
+, playerctl
+, libsoup
+}:
+
+stdenv.mkDerivation rec {
+  pname = "gtklock-playerctl-module";
+  version = "2.0.1";
+
+  src = fetchFromGitHub {
+    owner = "jovanlanik";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-kzGgqFDTeKL6Pfjram7pqVcIm8Avxsvpn1qFrcpd8dw=";
+  };
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ gtk3 playerctl libsoup ];
+
+  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;
+  };
+}