2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, yabridge
|
|
|
|
, makeWrapper
|
|
|
|
, wine
|
|
|
|
}:
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "yabridgectl";
|
|
|
|
version = yabridge.version;
|
|
|
|
|
|
|
|
src = yabridge.src;
|
|
|
|
sourceRoot = "source/tools/yabridgectl";
|
2021-08-22 07:53:02 +00:00
|
|
|
cargoHash = "sha256-2x3qB0LbCBUZ4zqKIXPtYdWis+4QANTaJdFvoFbccGE=";
|
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
|
2021-03-12 07:09:13 +00:00
|
|
|
# hard coded distro specific lib paths. This patch replaces those
|
|
|
|
# hard coded paths with lib paths from NIX_PROFILES.
|
2021-02-17 17:02:09 +00:00
|
|
|
./libyabridge-from-nix-profiles.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p3" ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/yabridgectl" \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ wine ]}
|
|
|
|
'';
|
|
|
|
|
2021-02-17 17:02:09 +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;
|
2021-05-28 09:39:13 +00:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = yabridge.meta.platforms;
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
}
|