yabridge, yabridgectl: hard code wine path

This commit is contained in:
Kira Bruneau
2021-04-27 15:27:47 -04:00
parent 79cb2cb986
commit 9cbe07c1b2
4 changed files with 58 additions and 3 deletions
+13 -1
View File
@@ -1,4 +1,9 @@
{ lib, rustPlatform, yabridge }:
{ lib
, rustPlatform
, yabridge
, makeWrapper
, wine
}:
rustPlatform.buildRustPackage rec {
pname = "yabridgectl";
@@ -17,6 +22,13 @@ rustPlatform.buildRustPackage rec {
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";