From 90af5cacfbcf6b3c57a33feb1e19be797b27e7e8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 14 Nov 2021 10:14:39 +0100 Subject: [PATCH] obs-studio: avoid double-wrapping the obs binary Suggested in https://github.com/NixOS/nixpkgs/pull/145664#issuecomment-968107267. --- pkgs/applications/video/obs-studio/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index 7454cc1eb297..31f478c47c0b 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -21,7 +21,6 @@ , curl , wayland , xorg -, makeWrapper , pkg-config , libvlc , mbedtls @@ -67,7 +66,6 @@ mkDerivation rec { addOpenGLRunpath cmake pkg-config - makeWrapper wrapGAppsHook ] ++ optional scriptingSupport swig; @@ -121,9 +119,13 @@ mkDerivation rec { "-DCEF_ROOT_DIR=../../cef" ]; - qtWrapperArgs = [ - "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ xorg.libX11 libvlc ]}" - ]; + dontWrapGApps = true; + preFixup = '' + qtWrapperArgs+=( + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ xorg.libX11 libvlc ]}" + ''${gappsWrapperArgs[@]} + ) + ''; postFixup = lib.optionalString stdenv.isLinux '' addOpenGLRunpath $out/lib/lib*.so