8 rustPlatform.buildRustPackage {
10 version = yabridge.version;
13 sourceRoot = "${yabridge.src.name}/tools/yabridgectl";
15 lockFile = ./Cargo.lock;
17 "reflink-0.1.3" = "sha256-1o5d/mepjbDLuoZ2/49Bi6sFgVX4WdCuhGJkk8ulhcI=";
22 # Patch yabridgectl to search for the chainloader through NIX_PROFILES
23 ./chainloader-from-nix-profiles.patch
25 # Dependencies are hardcoded in yabridge, so the check is unnecessary and likely incorrect
26 ./remove-dependency-verification.patch
29 patchFlags = [ "-p3" ];
31 nativeBuildInputs = [ makeWrapper ];
34 wrapProgram "$out/bin/yabridgectl" \
35 --prefix PATH : ${lib.makeBinPath [
41 description = "Small, optional utility to help set up and update yabridge for several directories at once";
42 homepage = "${yabridge.src.meta.homepage}/tree/${yabridge.version}/tools/yabridgectl";
43 changelog = yabridge.meta.changelog;
44 license = licenses.gpl3Plus;
45 maintainers = with maintainers; [ kira-bruneau ];
46 platforms = yabridge.meta.platforms;
47 mainProgram = "yabridgectl";