mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
8 lines
154 B
Bash
8 lines
154 B
Bash
dir="$(mktemp -d)" &&
|
|
cd "$dir" &&
|
|
unpackPhase &&
|
|
cd "${sourceRoot:-}" &&
|
|
cargo generate-lockfile &&
|
|
mv Cargo.lock "$1"
|
|
rm -rf "$dir"
|