capnproto: fix platform offset

Due to the wrong platform offset, buildPackages.capnproto would inappropriately
depend on empty-libgcc_eh when building with dynamic build platform and static
host platform. In turn the build would fail due to the archiver not being
found.
This commit is contained in:
Alois Wohlschlager
2025-08-09 11:53:44 +02:00
parent c2ae88e026
commit 8b0263aba5
+1 -1
View File
@@ -45,7 +45,7 @@ clangStdenv.mkDerivation rec {
openssl
zlib
]
++ lib.optional (clangStdenv.cc.isClang && clangStdenv.targetPlatform.isStatic) empty-libgcc_eh;
++ lib.optional (clangStdenv.cc.isClang && clangStdenv.hostPlatform.isStatic) empty-libgcc_eh;
# FIXME: separate the binaries from the stuff that user systems actually use
# This runs into a terrible UX issue in Lix and I just don't want to debug it