about summary refs log tree commit diff
path: root/pkgs/applications/audio/bitwig-studio
diff options
context:
space:
mode:
authorThomas Churchman <thomas@kepow.org>2021-06-16 09:08:28 +0100
committerThomas Churchman <thomas@kepow.org>2021-06-18 09:51:56 +0100
commita027daf2bd414689637770fe0ea7016794ec0a3b (patch)
treeda2e8f6def12b6b5650cd83e569afa1b18bf8e9d /pkgs/applications/audio/bitwig-studio
parent593f8bde3c97f5202d762d8195c295ebc03665da (diff)
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
Diffstat (limited to 'pkgs/applications/audio/bitwig-studio')
-rw-r--r--pkgs/applications/audio/bitwig-studio/bitwig-studio3.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/audio/bitwig-studio/bitwig-studio3.nix b/pkgs/applications/audio/bitwig-studio/bitwig-studio3.nix
index b041d7e191026..6b272a408ab0e 100644
--- a/pkgs/applications/audio/bitwig-studio/bitwig-studio3.nix
+++ b/pkgs/applications/audio/bitwig-studio/bitwig-studio3.nix
@@ -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
 
   '';