summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorVanilla <osu_Vanilla@126.com>2023-02-07 11:08:44 +0800
committerVanilla <osu_Vanilla@126.com>2023-02-07 16:56:56 +0800
commitf1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3 (patch)
treeb5471fe091a5f79c507820dc3a99343720480000 /pkgs/applications
parent9efd36481c762d7f7b6543edbfe219d41b606859 (diff)
downloadnixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.tar
nixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.tar.gz
nixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.tar.bz2
nixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.tar.lz
nixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.tar.xz
nixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.tar.zst
nixpkgs-f1d41d287484f96a8e6f9c5a6eb88c7fa93b4ce3.zip
pbpctrl: init at unstable-2023-02-07
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/audio/pbpctrl/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pbpctrl/default.nix b/pkgs/applications/audio/pbpctrl/default.nix
new file mode 100644
index 00000000000..071a4468434
--- /dev/null
+++ b/pkgs/applications/audio/pbpctrl/default.nix
@@ -0,0 +1,34 @@
+{ rustPlatform
+, fetchFromGitHub
+, pkg-config
+, dbus
+, protobuf
+, lib
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "pbpctrl";
+
+  # https://github.com/qzed/pbpctrl/issues/4
+  version = "unstable-2023-02-07";
+
+  src = fetchFromGitHub {
+    owner = "qzed";
+    repo = "${pname}";
+    rev = "9fef4bb88046a9f00719b189f8e378c8dbdb8ee6";
+    hash = "sha256-8YbsBqqITJ9bKzbGX6d/CSBb8wzr6bDzy8vsyntL1CA=";
+  };
+
+  cargoHash = "sha256-ZxJjjaT/ZpEPxvO42UWBy3xW/V5dhXGsKn3KmuM89YA==";
+
+  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;
+  };
+}