From 91ef5f629cc4001cf4f8284e5ffb0b2cae934029 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 31 Jan 2025 18:13:37 +0300 Subject: [PATCH] flake.nix: hack to fix build on staging-next Hopefully we don't actually ship this. Change-Id: Idb4c2e8e1b28659f3d8f1314381b229a279d56e1 --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 02ee730a3..f7f4f4ef0 100644 --- a/flake.nix +++ b/flake.nix @@ -201,6 +201,15 @@ srcDir = ./subprojects/nix-eval-jobs; }; + # HACK: We need nix-prefetch-git for fetchCargoVendor for Rust stuff, + # so it can't use Lix, or we infrec: + # lix -> Rust stuff -> fetchCargoVendor -> nix-prefetch-git -> nix (lix) + # This will eventually become a problem upstream, but until then, + # apply some duct tape and pray. + nix-prefetch-git = prev.nix-prefetch-git.override { + nix = prev.nix; + }; + # Export the patched version of boehmgc that Lix uses into the overlay # for consumers of this flake. boehmgc-nix = final.nix.passthru.boehmgc-nix;