rocmPackages.llvm.clang-unwrapped: use replaceVars instead of substituteAll

This commit is contained in:
Wolfgang Walther
2025-04-23 23:27:16 +02:00
parent 4e38e744d7
commit 9c45add790
@@ -15,7 +15,7 @@
zlib,
gcc-unwrapped,
glibc,
substituteAll,
replaceVars,
libffi,
libxml2,
removeReferencesTo,
@@ -319,8 +319,7 @@ rec {
})
# FIXME: Needed due to https://github.com/NixOS/nixpkgs/issues/375431
# Once we can switch to overrideScope this can be removed
(substituteAll {
src = ./../../../compilers/llvm/common/clang/clang-at-least-16-LLVMgold-path.patch;
(replaceVars ./../../../compilers/llvm/common/clang/clang-at-least-16-LLVMgold-path.patch {
libllvmLibdir = "${llvm.lib}/lib";
})
];