nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 834 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 dbus, 7 protobuf, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "pbpctrl"; 12 version = "0.1.8"; 13 14 src = fetchFromGitHub { 15 owner = "qzed"; 16 repo = "pbpctrl"; 17 rev = "v${version}"; 18 hash = "sha256-XSRJytPrRKKWhFTBQd3Kd1R3amdecGNTmJS4PmFL6kg="; 19 }; 20 21 cargoHash = "sha256-eDR/Z4v8G7/XPzWjJdZ5Fg2qULdn/SuNmvE/GVqSVJ8="; 22 23 nativeBuildInputs = [ 24 pkg-config 25 protobuf 26 ]; 27 buildInputs = [ dbus ]; 28 29 meta = { 30 description = "Control Google Pixel Buds Pro from the Linux command line"; 31 homepage = "https://github.com/qzed/pbpctrl"; 32 license = with lib.licenses; [ 33 asl20 34 mit 35 ]; 36 maintainers = with lib.maintainers; [ 37 vanilla 38 cafkafk 39 ]; 40 platforms = lib.platforms.linux; 41 mainProgram = "pbpctrl"; 42 }; 43}