bitwig-studio: suffix LD_LIBRARY_PATH
NixOS's `services.pipewire.jack` and `pw-jack` set `LD_LIBRARY_PATH`, we need to ensure those binaries are prioritized
This commit is contained in:
parent
593f8bde3c
commit
a027daf2bd
1 changed files with 5 additions and 1 deletions
|
@ -34,6 +34,8 @@ stdenv.mkDerivation rec {
|
|||
ldLibraryPath = lib.strings.makeLibraryPath buildInputs;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp -r opt/bitwig-studio $out/libexec
|
||||
ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio
|
||||
|
@ -41,6 +43,8 @@ stdenv.mkDerivation rec {
|
|||
substitute usr/share/applications/bitwig-studio.desktop \
|
||||
$out/share/applications/bitwig-studio.desktop \
|
||||
--replace /usr/bin/bitwig-studio $out/bin/bitwig-studio
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
|
@ -57,7 +61,7 @@ stdenv.mkDerivation rec {
|
|||
wrapProgram $f \
|
||||
"''${gappsWrapperArgs[@]}" \
|
||||
--prefix PATH : "${binPath}" \
|
||||
--prefix LD_LIBRARY_PATH : "${ldLibraryPath}"
|
||||
--suffix LD_LIBRARY_PATH : "${ldLibraryPath}"
|
||||
done
|
||||
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue