2021-04-20 22:08:20 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, yabridge
|
|
|
|
, makeWrapper
|
|
|
|
, wine
|
|
|
|
}:
|
2021-01-09 08:15:57 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "yabridgectl";
|
|
|
|
version = yabridge.version;
|
|
|
|
|
|
|
|
src = yabridge.src;
|
|
|
|
sourceRoot = "source/tools/yabridgectl";
|
2021-07-24 15:31:34 +02:00
|
|
|
cargoSha256 = "sha256-/VREh/f4bAt2DXCqK0noEjn+4hcK5VZUn+gdbYbeAmk=";
|
2021-01-09 08:15:57 +01:00
|
|
|
|
|
|
|
patches = [
|
2021-02-26 17:03:54 +01:00
|
|
|
# By default, yabridgectl locates libyabridge.so by using
|
2021-03-10 15:14:11 +01:00
|
|
|
# hard coded distro specific lib paths. This patch replaces those
|
|
|
|
# hard coded paths with lib paths from NIX_PROFILES.
|
2021-01-09 08:15:57 +01:00
|
|
|
./libyabridge-from-nix-profiles.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p3" ];
|
|
|
|
|
2021-04-20 22:08:20 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/yabridgectl" \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ wine ]}
|
|
|
|
'';
|
|
|
|
|
2021-01-09 08:15:57 +01: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;
|
2021-05-22 16:47:40 +02:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2021-06-07 00:10:27 +02:00
|
|
|
platforms = yabridge.meta.platforms;
|
2021-01-09 08:15:57 +01:00
|
|
|
};
|
|
|
|
}
|