libvpl: patch to search `/run/opengl-drivers/lib/` for runtime implementations

+28
+19
pkgs/by-name/li/libvpl/opengl-driver-lib.patch
···
··· 1 + --- a/libvpl/src/mfx_dispatcher_vpl_loader.cpp 2 + +++ b/libvpl/src/mfx_dispatcher_vpl_loader.cpp 3 + @@ -548,6 +548,16 @@ mfxStatus LoaderCtxVPL::BuildListOfCandidateLibs() { 4 + it++; 5 + } 6 + 7 + + // fourth priority 8 + + searchDirList.clear(); 9 + + searchDirList.push_back("@driverLink@/lib"); 10 + + it = searchDirList.begin(); 11 + + while (it != searchDirList.end()) { 12 + + STRING_TYPE nextDir = (*it); 13 + + sts = SearchDirForLibs(nextDir, m_libInfoList, LIB_PRIORITY_05); 14 + + it++; 15 + + } 16 + + 17 + // lowest priority: legacy MSDK installation 18 + searchDirList.clear(); 19 + GetSearchPathsLegacy(searchDirList);
+9
pkgs/by-name/li/libvpl/package.nix
··· 3 , fetchFromGitHub 4 , cmake 5 , pkg-config 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { ··· 30 "-DENABLE_X11=ON" 31 "-DINSTALL_EXAMPLE_CODE=OFF" 32 "-DBUILD_TOOLS=OFF" 33 ]; 34 35 meta = with lib; {
··· 3 , fetchFromGitHub 4 , cmake 5 , pkg-config 6 + , substituteAll 7 + , addDriverRunpath 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { ··· 32 "-DENABLE_X11=ON" 33 "-DINSTALL_EXAMPLE_CODE=OFF" 34 "-DBUILD_TOOLS=OFF" 35 + ]; 36 + 37 + patches = [ 38 + (substituteAll { 39 + src = ./opengl-driver-lib.patch; 40 + inherit (addDriverRunpath) driverLink; 41 + }) 42 ]; 43 44 meta = with lib; {