obs-studio: avoid double-wrapping the obs binary

Suggested in https://github.com/NixOS/nixpkgs/pull/145664#issuecomment-968107267.

+7 -5
+7 -5
pkgs/applications/video/obs-studio/default.nix
··· 21 21 , curl 22 22 , wayland 23 23 , xorg 24 - , makeWrapper 25 24 , pkg-config 26 25 , libvlc 27 26 , mbedtls ··· 67 66 addOpenGLRunpath 68 67 cmake 69 68 pkg-config 70 - makeWrapper 71 69 wrapGAppsHook 72 70 ] 73 71 ++ optional scriptingSupport swig; ··· 121 119 "-DCEF_ROOT_DIR=../../cef" 122 120 ]; 123 121 124 - qtWrapperArgs = [ 125 - "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ xorg.libX11 libvlc ]}" 126 - ]; 122 + dontWrapGApps = true; 123 + preFixup = '' 124 + qtWrapperArgs+=( 125 + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ xorg.libX11 libvlc ]}" 126 + ''${gappsWrapperArgs[@]} 127 + ) 128 + ''; 127 129 128 130 postFixup = lib.optionalString stdenv.isLinux '' 129 131 addOpenGLRunpath $out/lib/lib*.so