Skip to content

Commit af9ffbb

Browse files
authored
blender: fix hip support (#410748)
1 parent 0060eda commit af9ffbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/by-name/bl/blender/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ stdenv'.mkDerivation (finalAttrs: {
134134
'${lib.getLib brotli}/lib/libbrotlidec.dylib'
135135
'')
136136
+ (lib.optionalString hipSupport ''
137-
substituteInPlace extern/hipew/src/hipew.c --replace '"/opt/rocm/hip/lib/libamdhip64.so"' '"${rocmPackages.clr}/lib/libamdhip64.so"'
138-
substituteInPlace extern/hipew/src/hipew.c --replace '"opt/rocm/hip/bin"' '"${rocmPackages.clr}/bin"'
137+
substituteInPlace extern/hipew/src/hipew.c --replace-fail '"/opt/rocm/hip/lib/libamdhip64.so.${lib.versions.major rocmPackages.clr.version}"' '"${rocmPackages.clr}/lib/libamdhip64.so"'
138+
substituteInPlace extern/hipew/src/hipew.c --replace-fail '"opt/rocm/hip/bin"' '"${rocmPackages.clr}/bin"'
139139
'');
140140

141141
env.NIX_CFLAGS_COMPILE = "-I${python3}/include/${python3.libPrefix}";

0 commit comments

Comments
 (0)