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";
|
2023-01-20 10:41:00 +00:00
|
|
|
cargoSha256 = "sha256-X7YcIjKLzuts7d9VD6hLFCiEBrY4opi8nInjPs9jAh0=";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
patches = [
|
2022-07-18 16:21:45 +00:00
|
|
|
# Patch yabridgectl to search for the chainloader through NIX_PROFILES
|
|
|
|
./chainloader-from-nix-profiles.patch
|
|
|
|
|
|
|
|
# Dependencies are hardcoded in yabridge, so the check is unnecessary and likely incorrect
|
|
|
|
./remove-dependency-verification.patch
|
2021-02-17 17:02:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p3" ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/yabridgectl" \
|
2022-07-18 16:21:45 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [
|
|
|
|
wine # winedump
|
|
|
|
]}
|
2021-05-03 20:48:10 +00:00
|
|
|
'';
|
|
|
|
|
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";
|
2022-07-18 16:21:45 +00:00
|
|
|
homepage = "${src.meta.homepage}/tree/${version}/tools/yabridgectl";
|
2021-02-17 17:02:09 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|