From dbba578f220a13d62505a3e2bc3bbfdc1962c551 Mon Sep 17 00:00:00 2001 From: winston Date: Wed, 3 Jun 2026 18:51:34 +0200 Subject: [PATCH] openvino: fix order for autoPatchelfHook/addDriverRunpath --- pkgs/by-name/op/openvino/package.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/op/openvino/package.nix b/pkgs/by-name/op/openvino/package.nix index 2430b777786c..5c33a7b8c7dc 100644 --- a/pkgs/by-name/op/openvino/package.nix +++ b/pkgs/by-name/op/openvino/package.nix @@ -74,8 +74,10 @@ stdenv.mkDerivation (finalAttrs: { ]; nativeBuildInputs = [ - addDriverRunpath + # order matters here: autoAddDriverRunpath must run after autoPatchelfHook, otherwise the RUNPATH will end up being wrong autoPatchelfHook + addDriverRunpath + cmake git libarchive @@ -173,11 +175,6 @@ stdenv.mkDerivation (finalAttrs: { ''; postFixup = '' - # Link to OpenCL - find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do - addDriverRunpath "$lib" - done - substituteInPlace $dev/lib/pkgconfig/openvino.pc \ --replace-fail "include_prefix=\''${prefix}/" "include_prefix=" \ --replace-fail "exec_prefix=\''${prefix}/" "exec_prefix="