depot/third_party/nixpkgs/pkgs/applications/virtualization/crosvm/generate-cargo.sh

8 lines
154 B
Bash
Raw Normal View History

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