diff --git a/pkgs/tools/audio/yabridge/default.nix b/pkgs/tools/audio/yabridge/default.nix index ef97b99163f3..78bf12e51018 100644 --- a/pkgs/tools/audio/yabridge/default.nix +++ b/pkgs/tools/audio/yabridge/default.nix @@ -152,11 +152,10 @@ multiStdenv.mkDerivation (finalAttrs: { # Hard code wine path in wrapper scripts generated by winegcc postFixup = '' - substituteInPlace "$out/bin/yabridge-host-32.exe" \ - --replace 'WINELOADER="wine"' 'WINELOADER="${wine}/bin/wine"' - - substituteInPlace "$out/bin/yabridge-host.exe" \ - --replace 'WINELOADER="wine"' 'WINELOADER="${wine}/bin/wine64"' + for exe in "$out"/bin/*.exe; do + substituteInPlace "$exe" \ + --replace-fail 'WINELOADER="wine"' 'WINELOADER="${wine}/bin/wine"' + done ''; passthru.updateScript = nix-update-script { };