mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-17 13:27:27 +03:00
add fallback to overrideAttrs
This commit is contained in:
parent
dcf5fcc402
commit
dbb398b08f
@ -78,7 +78,7 @@ def nix_prefetch(expr: str) -> str:
|
||||
[
|
||||
"nix-build",
|
||||
"--expr",
|
||||
f'({expr}).overrideAttrs (_: {{ outputHash = ""; outputHashAlgo = "sha256"; }})',
|
||||
f'let src = {expr}; in (src.overrideAttrs or (f: src // f src)) (_: {{ outputHash = ""; outputHashAlgo = "sha256"; }})',
|
||||
],
|
||||
extra_env=extra_env,
|
||||
check=False,
|
||||
|
Loading…
Reference in New Issue
Block a user