From 19fd6ffae53277067df2b38a7757c225427ce970 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 5 Dec 2023 23:12:14 -0800 Subject: chore(third_party/overlays): disable nix aws integration The Nix AWS integration is a complete dumpster-fire, the library it relies on (aws-sdk-cpp) accounts for more build time than cppnix itself, and its tests fail nondeterministically. We recently disabled it for nixpkgs' CI: https://github.com/NixOS/nixpkgs/pull/266443 Since it appears TVL does not use the AWS integration (correct me if I'm wrong) let's disable it here too. Hopefully someday cppnix will give up on it and just delete it. Change-Id: I71668c03379275b2083e59ff7c3a48b3bc7f5e48 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10202 Reviewed-by: flokli Autosubmit: Adam Joseph Tested-by: BuildkiteCI --- third_party/overlays/tvl.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix index ccd2f21d1a53..000c234ea9f2 100644 --- a/third_party/overlays/tvl.nix +++ b/third_party/overlays/tvl.nix @@ -4,8 +4,15 @@ self: super: 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; + }); nix = self.nix_2_3; - nix_latest = super.nix; + nix_latest = super.nix.override ({ + # flaky tests, long painful build, see https://github.com/NixOS/nixpkgs/pull/266443 + withAWS = false; + }); # To match telega in emacs-overlay or wherever tdlib = super.tdlib.overrideAttrs (_: { @@ -74,7 +81,7 @@ depot.nix.readTree.drvTargets { }; })); - crate2nix = super.crate2nix.overrideAttrs (old: rec { + crate2nix = (super.crate2nix.override (_: { nix = self.nix_latest; })).overrideAttrs (old: rec { patches = old.patches ++ [ # run tests in debug mode, not release mode # https://github.com/nix-community/crate2nix/pull/301 -- cgit 1.4.1