select: use nix_options copy

This commit is contained in:
Jörg Thalheim
2025-06-27 19:20:12 +02:00
parent 6afe4305b4
commit b251275063

View File

@@ -741,7 +741,7 @@ class Flake:
select_hash = "@select_hash@" select_hash = "@select_hash@"
if not select_hash.startswith("sha256-"): if not select_hash.startswith("sha256-"):
select_flake = Flake(str(select_source()), nix_options=self.nix_options) select_flake = Flake(str(select_source()), nix_options=nix_options)
select_flake.invalidate_cache() select_flake.invalidate_cache()
assert select_flake.hash is not None, ( assert select_flake.hash is not None, (
"this should be impossible as invalidate_cache() should always set `hash`" "this should be impossible as invalidate_cache() should always set `hash`"