diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-20 12:16:56 +0100 |
commit | b24d64b3b1ef897f07cd072a88a9881cb330aa7f (patch) | |
tree | a87bb2eed9af3ef1efd51dd65221d91f0c949041 /nixpkgs/pkgs/by-name/si | |
parent | 73338df7473bb3810e70a16b8b0cba4f0f606f2b (diff) | |
parent | fa15b53dbea5028db38d6e09b4cef6eba42aeebb (diff) | |
download | nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.gz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.bz2 nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.lz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.xz nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.tar.zst nixlib-b24d64b3b1ef897f07cd072a88a9881cb330aa7f.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/si')
-rw-r--r-- | nixpkgs/pkgs/by-name/si/sink-rotate/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/si/sink-rotate/package.nix b/nixpkgs/pkgs/by-name/si/sink-rotate/package.nix new file mode 100644 index 000000000000..8d0c8afe6e9d --- /dev/null +++ b/nixpkgs/pkgs/by-name/si/sink-rotate/package.nix @@ -0,0 +1,41 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pipewire +, wireplumber +, makeWrapper +}: +let + version = "1.0.4"; +in +rustPlatform.buildRustPackage { + pname = "sink-rotate"; + inherit version; + + src = fetchFromGitHub { + owner = "mightyiam"; + repo = "sink-rotate"; + rev = "v${version}"; + hash = "sha256-q20uUr+7yLJlZc5YgEkY125YrZ2cuJrPv5IgWXaYRlo="; + }; + + cargoHash = "sha256-MPeyPTkxpi6iw/BT5m4S7jVBD0c2zG2rsv+UZWQxpUU="; + + buildInputs = [ makeWrapper ]; + + postFixup = '' + wrapProgram $out/bin/sink-rotate \ + --prefix PATH : ${pipewire}/bin/pw-dump \ + --prefix PATH : ${wireplumber}/bin/wpctl + ''; + + meta = with lib; { + description = "Command that rotates default between two PipeWire audio sinks."; + homepage = "https://github.com/mightyiam/sink-rotate"; + license = licenses.mit; + maintainers = with maintainers; [ mightyiam ]; + mainProgram = "sink-rotate"; + platforms = platforms.linux; + }; +} + |