From f3ca96eccc4556e38692b27463da5f32afb51859 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 15 Feb 2025 10:02:21 +0300 Subject: [PATCH] feat(3p/overlays): build Nix 2.3 from TVL maintenance branch Our maintenance branch includes additional concurrency fixes which are not in the upstream 2.3 branch. These issues are fixed in C++ Nix HEAD, but in a more invasive way (by removing the second set of locks completely). This also retains additional debug information in the built binaries to make future issues easier to debug. Change-Id: I4e7a8baabd059c96404822d9634df52c403a869f Reviewed-on: https://cl.tvl.fyi/c/depot/+/13135 Tested-by: BuildkiteCI Reviewed-by: sterni --- third_party/overlays/tvl.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix index b8fbd39d5..e2b697045 100644 --- a/third_party/overlays/tvl.nix +++ b/third_party/overlays/tvl.nix @@ -7,7 +7,18 @@ depot.nix.readTree.drvTargets { nix_2_3 = (super.nix_2_3.override { # flaky tests, long painful build, see https://github.com/NixOS/nixpkgs/pull/266443 withAWS = false; + }).overrideAttrs (_: { + # use TVL maintenance branch for 2.3, which has more fixes than upstream + CXXFLAGS = "--std=c++20 -g"; + dontStrip = true; + src = self.fetchFromGitHub { + owner = "tvlfyi"; + repo = "nix"; + rev = "d516e2826128c09588535b67aa27fd3e24288b5f"; + sha256 = "04yxxhhq4542gakfh2kylnhq9fagfzv63shrq0qvf8rajflwxr22"; + }; }); + nix = self.nix_2_3 // { # avoid duplicate pipeline step meta = self.nix_2_3.meta or { } // { @@ -16,6 +27,7 @@ depot.nix.readTree.drvTargets { }; }; }; + nix_latest_stable = super.nix.override ({ # flaky tests, long painful build, see https://github.com/NixOS/nixpkgs/pull/266443 withAWS = false;