flake: don't override nix-prefetch-git when we don't need to

https://github.com/NixOS/nixpkgs/pull/384099 has landed.
Change-Id: Ic4034dcd3028f7f8e476bf436dd9e1cf174060c5
This commit is contained in:
K900
2025-03-12 22:21:20 +03:00
parent 85a140accb
commit 40601ea3ab
+5 -3
View File
@@ -205,9 +205,11 @@
# 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;
};
nix-prefetch-git =
if (lib.functionArgs prev.nix-prefetch-git.override) ? "nix" then
prev.nix-prefetch-git.override { nix = prev.nix; }
else
prev.nix-prefetch-git;
# Export the patched version of boehmgc that Lix uses into the overlay
# for consumers of this flake.