nixpkgs/pkgs/tools/audio/yabridgectl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, rustPlatform
, yabridge
, makeWrapper
, wine
}:
2021-01-09 07:15:57 +00:00
rustPlatform.buildRustPackage rec {
pname = "yabridgectl";
version = yabridge.version;
src = yabridge.src;
sourceRoot = "source/tools/yabridgectl";
2022-04-23 17:47:04 +00:00
cargoSha256 = "sha256-ducF55d5OvCwlNFtt2r6pG5e9VevM2AzHSvPnWvIp1Y=";
2021-01-09 07:15:57 +00:00
patches = [
# By default, yabridgectl locates libyabridge.so by using
2021-03-10 14:14:11 +00:00
# hard coded distro specific lib paths. This patch replaces those
# hard coded paths with lib paths from NIX_PROFILES.
2021-01-09 07:15:57 +00:00
./libyabridge-from-nix-profiles.patch
];
patchFlags = [ "-p3" ];
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram "$out/bin/yabridgectl" \
--prefix PATH : ${lib.makeBinPath [ wine ]}
'';
2021-01-09 07:15:57 +00:00
meta = with lib; {
description = "A small, optional utility to help set up and update yabridge for several directories at once";
homepage = "https://github.com/robbert-vdh/yabridge/tree/master/tools/yabridgectl";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kira-bruneau ];
2021-06-06 22:10:27 +00:00
platforms = yabridge.meta.platforms;
2021-01-09 07:15:57 +00:00
};
}