mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-11 10:35:43 +03:00
also respect cargoRoot when updating checksum
This commit is contained in:
parent
ef5b8337a0
commit
fe6b2e9cdc
@ -167,10 +167,10 @@ def update_cargo_lock(
|
||||
"--print-out-paths",
|
||||
"--expr",
|
||||
f"""
|
||||
{get_package(opts)}.overrideAttrs (_: {{
|
||||
{get_package(opts)}.overrideAttrs (old: {{
|
||||
cargoDeps = null;
|
||||
postUnpack = ''
|
||||
cp -r "$sourceRoot/Cargo.lock" $out
|
||||
cp -r "$sourceRoot/${{old.cargoRoot or "."}}/Cargo.lock" $out
|
||||
exit
|
||||
'';
|
||||
outputs = [ "out" ];
|
||||
|
Loading…
Reference in New Issue
Block a user