testWithNix: Don't depend on CppNix

Change-Id: Ia0903d93796c30e370d99d02877cc93c258b8f32
This commit is contained in:
Tom Hubrecht
2025-12-14 15:20:16 +01:00
parent 3e3573cb58
commit 5157fbaf2c
+14 -1
View File
@@ -465,7 +465,20 @@
let
inherit (self.packages.${system}) nix;
pkgs = nixpkgsFor.${system}.native;
testWithNix = import (nixpkgs + "/lib/tests/test-with-nix.nix") { inherit pkgs lib nix; };
testWithNix =
(import (nixpkgs + "/lib/tests/test-with-nix.nix") {
inherit pkgs lib nix;
}).overrideAttrs
(_: {
buildInputs = [
(import (nixpkgs + "/lib/path/tests") {
inherit pkgs;
# NOTE: Override the nix version used here, we cannot rely on CppNix actually building
# c.f. https://github.com/NixOS/nixpkgs/blob/master/lib/path/tests/default.nix#L18
nixVersions.stable = nix;
})
];
});
in
pkgs.symlinkJoin {
name = "nixpkgs-lib-tests";