From d028f68f41bc0438519f49efeabbf9f90aebda52 Mon Sep 17 00:00:00 2001 From: DavHau Date: Thu, 26 Sep 2024 13:29:17 +0200 Subject: [PATCH] fix: autoAddOpenGLRunpathHook -> autoAddDriverRunpath --- overrides/python/torch/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/overrides/python/torch/default.nix b/overrides/python/torch/default.nix index 97676fd378..f029f2e951 100644 --- a/overrides/python/torch/default.nix +++ b/overrides/python/torch/default.nix @@ -6,13 +6,13 @@ # stripping doesn't reduce the file size much, and it takes a long time mkDerivation.dontStrip = true; - # use the autoAddOpenGLRunpathHook to add /run/opengl-driver/lib to the RPATH + # use the autoAddDriverRunpath to add /run/opengl-driver/lib to the RPATH # of all ELF files deps = {nixpkgs, ...}: { - inherit (nixpkgs.cudaPackages) autoAddOpenGLRunpathHook; + inherit (nixpkgs) autoAddDriverRunpath; }; mkDerivation.nativeBuildInputs = [ - config.deps.autoAddOpenGLRunpathHook + config.deps.autoAddDriverRunpath ]; # this file is patched manually, so ignore it in autoPatchelf