diff --git a/pkgs/development/python-modules/tinygrad/default.nix b/pkgs/development/python-modules/tinygrad/default.nix index d181f339b5b79..7ae30a43b8aab 100644 --- a/pkgs/development/python-modules/tinygrad/default.nix +++ b/pkgs/development/python-modules/tinygrad/default.nix @@ -86,11 +86,10 @@ buildPythonPackage rec { '' + lib.optionalString rocmSupport '' substituteInPlace tinygrad/runtime/autogen/hip.py \ - --replace-fail "/opt/rocm/lib/libamdhip64.so" "${rocmPackages.clr}/lib/libamdhip64.so" \ - --replace-fail "/opt/rocm/lib/libhiprtc.so" "${rocmPackages.clr}/lib/libhiprtc.so" \ + --replace-fail "/opt/rocm/" "${rocmPackages.clr}/" substituteInPlace tinygrad/runtime/autogen/comgr.py \ - --replace-fail "/opt/rocm/lib/libamd_comgr.so" "${rocmPackages.rocm-comgr}/lib/libamd_comgr.so" + --replace-fail "/opt/rocm/" "${rocmPackages.rocm-comgr}/" ''; build-system = [ setuptools ];