mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
blender: fix hip support (#410748)
This commit is contained in:
parent
0060edafbf
commit
af9ffbb640
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ stdenv'.mkDerivation (finalAttrs: {
|
||||||
'${lib.getLib brotli}/lib/libbrotlidec.dylib'
|
'${lib.getLib brotli}/lib/libbrotlidec.dylib'
|
||||||
'')
|
'')
|
||||||
+ (lib.optionalString hipSupport ''
|
+ (lib.optionalString hipSupport ''
|
||||||
substituteInPlace extern/hipew/src/hipew.c --replace '"/opt/rocm/hip/lib/libamdhip64.so"' '"${rocmPackages.clr}/lib/libamdhip64.so"'
|
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"'
|
||||||
substituteInPlace extern/hipew/src/hipew.c --replace '"opt/rocm/hip/bin"' '"${rocmPackages.clr}/bin"'
|
substituteInPlace extern/hipew/src/hipew.c --replace-fail '"opt/rocm/hip/bin"' '"${rocmPackages.clr}/bin"'
|
||||||
'');
|
'');
|
||||||
|
|
||||||
env.NIX_CFLAGS_COMPILE = "-I${python3}/include/${python3.libPrefix}";
|
env.NIX_CFLAGS_COMPILE = "-I${python3}/include/${python3.libPrefix}";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue