From 4807351d123543270d90da5a1100afd294ee9020 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 2 Oct 2021 06:41:19 +0300 Subject: [PATCH] obs-studio: fix doublewrapping --- pkgs/applications/video/obs-studio/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index 1d226ec8fe26..85a072547714 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -121,10 +121,9 @@ mkDerivation rec { "-DCEF_ROOT_DIR=../../cef" ]; - postInstall = '' - wrapProgram $out/bin/obs \ - --prefix "LD_LIBRARY_PATH" : "${xorg.libX11.out}/lib:${libvlc}/lib" - ''; + qtWrapperArgs = [ + "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ xorg.libX11 libvlc ]}" + ]; postFixup = lib.optionalString stdenv.isLinux '' addOpenGLRunpath $out/lib/lib*.so