llvmPackages*: fix paths to libcxx-0001-musl-hacks.patch
This patches are included from libcxx and libcxxabi when stdenv.hostPlatform.isMusl. After #117433 the patchs to that patch wasn't adjusted for the new structure, likely because it doesn't come up during normal eval. This fixes (among other attribute paths): * pkgsMusl.llvmPackages_12.libcxxabi * pkgsMusl.llvmPackages_12.libcxx * pkgsMusl.llvmPackages_11.libcxxabi * pkgsMusl.llvmPackages_11.libcxx * pkgsMusl.llvmPackages_10.libcxxabi * pkgsMusl.llvmPackages_10.libcxx * pkgsMusl.llvmPackages_9.libcxxabi * pkgsMusl.llvmPackages_9.libcxx * pkgsMusl.llvmPackages_8.libcxxabi * pkgsMusl.llvmPackages_8.libcxx * pkgsMusl.llvmPackages_7.libcxxabi * pkgsMusl.llvmPackages_7.libcxx * pkgsMusl.llvmPackages_6.libcxxabi * pkgsMusl.llvmPackages_6.libcxx * pkgsMusl.llvmPackages_5.libcxxabi * pkgsMusl.llvmPackages_5.libcxx Only evaluation was tested, not compilation though.
This commit is contained in:
parent
62ec3db017
commit
081b9423d4
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
||||||
patch -p1 -d $(ls -d llvm-*) -i ${./wasm.patch}
|
patch -p1 -d $(ls -d llvm-*) -i ${./wasm.patch}
|
||||||
'';
|
'';
|
||||||
|
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d libcxx -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d libcxx -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
||||||
patch -p1 -d llvm -i ${./wasm.patch}
|
patch -p1 -d llvm -i ${./wasm.patch}
|
||||||
'';
|
'';
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = if stdenv.isDarwin
|
installPhase = if stdenv.isDarwin
|
||||||
|
@ -16,7 +16,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = if stdenv.isDarwin
|
installPhase = if stdenv.isDarwin
|
||||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
||||||
patch -p1 -d $(ls -d llvm-*) -i ${./wasm.patch}
|
patch -p1 -d $(ls -d llvm-*) -i ${./wasm.patch}
|
||||||
'';
|
'';
|
||||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d $(ls -d libcxx-*) -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
||||||
patch -p1 -d $(ls -d llvm-*) -i ${./wasm.patch}
|
patch -p1 -d $(ls -d llvm-*) -i ${./wasm.patch}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user