2023-04-20 18:14:03 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
|
|
|
, playerctl
|
|
|
|
, libsoup
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtklock-playerctl-module";
|
2024-04-19 18:31:44 +02:00
|
|
|
version = "3.0.0";
|
2023-04-20 18:14:03 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jovanlanik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-19 18:31:44 +02:00
|
|
|
hash = "sha256-eN4E3+jv8IyRvV8pvfCjCc6pl8y7qSLRlj7tYkX0JrE=";
|
2023-04-20 18:14:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|