From f42490dc69e23762d04a06b167432c6bf7bf80ea Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sun, 14 Jun 2026 22:05:28 +0700 Subject: [PATCH] sink-rotate: update src and accept upstream versioning --- pkgs/by-name/si/sink-rotate/package.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/si/sink-rotate/package.nix b/pkgs/by-name/si/sink-rotate/package.nix index fd0b11e6abe1..87eb16ff706c 100644 --- a/pkgs/by-name/si/sink-rotate/package.nix +++ b/pkgs/by-name/si/sink-rotate/package.nix @@ -5,22 +5,20 @@ pipewire, wireplumber, makeWrapper, + nix-update-script, }: -let - version = "2.3.0"; -in rustPlatform.buildRustPackage { pname = "sink-rotate"; - inherit version; + version = "2.3.0-unstable-2026-05-14"; src = fetchFromGitHub { owner = "mightyiam"; repo = "sink-rotate"; - rev = "v${version}"; - hash = "sha256-gGmnji7KqmCxUaeXOGMnHMI6b8AJ6Np+xVjibqgGSKM="; + rev = "8bf24a2ebad7151fe5a7e8dd4577effccbd6fa2a"; + hash = "sha256-ftSu04fWCgZ9Beu4pMAF8KKe3nfe0km1F6ExVWbmoxQ="; }; - cargoHash = "sha256-7/EyDBWANoL5m9mx93LKMKD8hgcc3VgvrcLD6oTBXN8="; + cargoHash = "sha256-qiHrntm6p3j5784Pzh0NxeyQMasTQpgsfXq+DyDqies="; nativeBuildInputs = [ makeWrapper ]; @@ -30,6 +28,10 @@ rustPlatform.buildRustPackage { --prefix PATH : ${wireplumber}/bin/wpctl ''; + passthru.updateScript = nix-update-script { + extraArgs = [ "--version=branch" ]; + }; + meta = { description = "Command that rotates the default PipeWire audio sink"; homepage = "https://github.com/mightyiam/sink-rotate";