@@ -189,20 +189,21 @@ stdenv.mkDerivation (finalAttrs: {
189189 ) ;
190190
191191 postPatch =
192+ # `CMake Error: cannot write to file "/build/source/llvm/build/lib/cmake/mlir/MLIRTargets.cmake": Permission denied`
192193 ''
193- # `CMake Error: cannot write to file "/build/source/llvm/build/lib/cmake/mlir/MLIRTargets.cmake": Permission denied`
194194 chmod +w -R ./mlir
195195 patchShebangs ./mlir/test/mlir-reduce
196-
197- # FileSystem permissions tests fail with various special bits
196+ ''
197+ # FileSystem permissions tests fail with various special bits
198+ + ''
198199 rm llvm/test/tools/llvm-objcopy/ELF/mirror-permissions-unix.test
199200 rm llvm/unittests/Support/Path.cpp
200201
201202 substituteInPlace llvm/unittests/Support/CMakeLists.txt \
202- --replace "Path.cpp" ""
203+ --replace-fail "Path.cpp" ""
203204 ''
205+ # Not sure why this fails
204206 + lib . optionalString stdenv . hostPlatform . isAarch64 ''
205- # Not sure why this fails
206207 rm llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s
207208 '' ;
208209
@@ -221,14 +222,15 @@ stdenv.mkDerivation (finalAttrs: {
221222 checkTarget = "check-all" ;
222223 requiredSystemFeatures = [ "big-parallel" ] ;
223224
224- meta = with lib ; {
225+ meta = {
225226 description = "Collection of modular and reusable compiler and toolchain technologies" ;
226227 homepage = "https://github.com/llvm/llvm-project" ;
227- license = with licenses ; [ ncsa ] ;
228- maintainers = with maintainers ; [
228+ changelog = "https://github.com/llvm/llvm-project/releases/tag/llvmorg-${ finalAttrs . version } " ;
229+ license = with lib . licenses ; [ ncsa ] ;
230+ maintainers = with lib . maintainers ; [
229231 SomeoneSerge
230232 Madouura
231233 ] ;
232- platforms = with platforms ; aarch64 ++ x86 ;
234+ platforms = with lib . platforms ; aarch64 ++ x86 ;
233235 } ;
234236} )
0 commit comments