Skip to content

Commit 17b7fb3

Browse files
committed
tests: Fix splicing in functional tests for nix-cli
This is necessary to fix nix-everything-llvm. The problem here is that nix-cli is taken from the previous stage that is built with libstdc++, but this derivation builds plugins with libc++ and the plugin load fails miserably.
1 parent 0f1cfa4 commit 17b7fb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/functional/package.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ mkMesonDerivation (
6060
];
6161

6262
nativeBuildInputs = finalAttrs.passthru.externalNativeBuildInputs ++ [
63-
nix-cli
63+
# Explicitly splice the hostHost variant to fix LLVM tests. The nix-cli
64+
# has to be in PATH, but must come from the host context where it's built
65+
# with libc++.
66+
(nix-cli.__spliced.hostHost or nix-cli)
6467
];
6568

6669
buildInputs = [

0 commit comments

Comments
 (0)