From 8b0263aba578e2fa611a528bedcfc5cf4d5a687c Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sat, 19 Jul 2025 09:26:36 +0200 Subject: [PATCH] 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. --- pkgs/by-name/ca/capnproto/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ca/capnproto/package.nix b/pkgs/by-name/ca/capnproto/package.nix index e02665fe0c50..cf43e3d27bea 100644 --- a/pkgs/by-name/ca/capnproto/package.nix +++ b/pkgs/by-name/ca/capnproto/package.nix @@ -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