depot/third_party/nixpkgs/pkgs/applications/audio/pbpctrl/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

32 lines
741 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, dbus
, protobuf
}:
rustPlatform.buildRustPackage rec {
pname = "pbpctrl";
version = "0.1.4";
src = fetchFromGitHub {
owner = "qzed";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-91sdlnffL/HX+Y8e6T+ZCa7MAcf4fWE0NJGLgmK47o8=";
};
cargoHash = "sha256-U4//GvAEhrfOrivwW/6PbKHdWXGIuilPl7Zo17wnwDY=";
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;
};
}