nixpkgs/pkgs/applications/audio/pbpctrl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
769 B
Nix
Raw Normal View History

2023-05-10 09:56:55 +00:00
{ lib
, rustPlatform
2023-02-07 03:08:44 +00:00
, fetchFromGitHub
, pkg-config
, dbus
, protobuf
}:
rustPlatform.buildRustPackage rec {
pname = "pbpctrl";
2024-10-13 10:11:19 +00:00
version = "0.1.6";
2023-02-07 03:08:44 +00:00
src = fetchFromGitHub {
owner = "qzed";
repo = "${pname}";
2023-05-10 09:56:55 +00:00
rev = "v${version}";
2024-10-13 10:11:19 +00:00
hash = "sha256-V7wfEXJ0tVQNsi1OFU1Dk2d9ImsNFRriGutpJzh2tV8=";
2023-02-07 03:08:44 +00:00
};
2024-10-13 10:11:19 +00:00
cargoHash = "sha256-8D+WD5bOxoUhw4a7SUr+D2gn1NA7OkmoCcALO9HY8Qk=";
2023-02-07 03:08:44 +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;
2024-02-11 02:19:15 +00:00
mainProgram = "pbpctrl";
2023-02-07 03:08:44 +00:00
};
}