2021-02-17 17:02:09 +00:00
|
|
|
{ lib, rustPlatform, yabridge }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "yabridgectl";
|
|
|
|
version = yabridge.version;
|
|
|
|
|
|
|
|
src = yabridge.src;
|
|
|
|
sourceRoot = "source/tools/yabridgectl";
|
2021-03-09 03:18:52 +00:00
|
|
|
cargoHash = "sha256-YSK1DWv9kb6kFUJ4UEhh6psKsVqwpFJjvjJgj2e4BAc=";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
patches = [
|
2021-03-09 03:18:52 +00:00
|
|
|
# By default, yabridgectl locates libyabridge.so by using
|
|
|
|
# hard-coded distro-specific lib paths. This patch replaces those
|
|
|
|
# hard coded paths with lib paths from NIX_PROFILE.
|
2021-02-17 17:02:09 +00:00
|
|
|
./libyabridge-from-nix-profiles.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p3" ];
|
|
|
|
|
|
|
|
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; [ metadark ];
|
|
|
|
};
|
|
|
|
}
|