2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-02-09 11:40:11 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, dbus
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pbpctrl";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.1.3";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qzed";
|
|
|
|
repo = "${pname}";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-CYroQb6x2d4ay3RZUSiSrcGDF0IL3ETZtHAFt18sa5s=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-+YtnPKbxZENL6/u36RFFZA6F+19qHDAVx6Q8FSB/LCU=";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config protobuf ];
|
|
|
|
buildInputs = [ dbus ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Control Google Pixel Buds Pro from the Linux command line.";
|
|
|
|
homepage = "https://github.com/qzed/pbpctrl";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = [ maintainers.vanilla ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|