mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 22:06:00 +03:00
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, yabridge
|
|
, makeWrapper
|
|
, wine
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "yabridgectl";
|
|
version = yabridge.version;
|
|
|
|
src = yabridge.src;
|
|
sourceRoot = "source/tools/yabridgectl";
|
|
cargoHash = "sha256-2x3qB0LbCBUZ4zqKIXPtYdWis+4QANTaJdFvoFbccGE=";
|
|
|
|
patches = [
|
|
# 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_PROFILES.
|
|
./libyabridge-from-nix-profiles.patch
|
|
];
|
|
|
|
patchFlags = [ "-p3" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
wrapProgram "$out/bin/yabridgectl" \
|
|
--prefix PATH : ${lib.makeBinPath [ wine ]}
|
|
'';
|
|
|
|
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; [ kira-bruneau ];
|
|
platforms = yabridge.meta.platforms;
|
|
};
|
|
}
|