nixpkgs/pkgs/applications/virtualization/crosvm/generate-cargo.sh
2022-04-13 08:20:32 +00:00

8 lines
154 B
Bash

dir="$(mktemp -d)" &&
cd "$dir" &&
unpackPhase &&
cd "${sourceRoot:-}" &&
cargo generate-lockfile &&
mv Cargo.lock "$1"
rm -rf "$dir"