sink-rotate: update src and accept upstream versioning

This commit is contained in:
Shahar "Dawn" Or
2026-06-14 22:05:28 +07:00
parent 7f1371b3a6
commit f42490dc69
+9 -7
View File
@@ -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";