depot/third_party/nixpkgs/pkgs/applications/audio/pbpctrl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
769 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, dbus
, protobuf
}:
rustPlatform.buildRustPackage rec {
pname = "pbpctrl";
version = "0.1.5";
src = fetchFromGitHub {
owner = "qzed";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-tOdKXYfeO+HsYIDDU3fDb76ytRHVOcIqffEjFnLwOTI=";
};
cargoHash = "sha256-yP4tsXCAPE1KUDU5oBIejL4kACK1dNXK7Kmw37VMexM=";
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;
mainProgram = "pbpctrl";
};
}