about summary refs log tree commit diff
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-01-27 18:01:05 +0100
committerGitHub <noreply@github.com>2023-01-27 18:01:05 +0100
commitf20d4f7010fc5a2c67a7e81ae0b14e2da53dc5de (patch)
treeab9a43837c54518ddb5f8f97cc215485155e5cf4 /pkgs/tools/audio
parent9356539b7d847bf2ba7d3dbba84cf1901c05fc6f (diff)
parent79d3cab3adde05ece0b084d34db98153dae3f24d (diff)
Merge pull request #212646 from astro/pw-volume
pw-volume: init at 0.4.0
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/pw-volume/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/audio/pw-volume/default.nix b/pkgs/tools/audio/pw-volume/default.nix
new file mode 100644
index 0000000000000..ddd9f4aa1a2a2
--- /dev/null
+++ b/pkgs/tools/audio/pw-volume/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, fetchFromGitHub
+, fetchurl
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "pw-volume";
+  version = "0.4.0";
+
+  src = fetchFromGitHub {
+    owner = "smasher164";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-u7Ct9Kfwld/h3b6hUZdfHNuDGE4NA3MwrmgUj4g64lw=";
+  };
+
+  cargoPatches = [
+    (fetchurl {
+      # update Cargo.lock
+      url = "https://github.com/smasher164/pw-volume/commit/be104eaaeb84def26b392cc44bb1e7b880bef0fc.patch";
+      sha256 = "sha256-gssRcKpqxSAvW+2kJzIAR/soIQ3xg6LDZ7OeXds4ulY=";
+    })
+  ];
+
+  cargoSha256 = "sha256-Vzd5ZbbzJh2QqiOrBOszsNqLwxM+mm2lbGd5JtKZzEM=";
+
+  meta = with lib; {
+    description = "Basic interface to PipeWire volume controls";
+    homepage = "https://github.com/smasher164/pw-volume";
+    license = licenses.mit;
+    maintainers = with maintainers; [ astro ];
+    platforms = platforms.linux;
+  };
+}