crosvm: don't repeat the path to Cargo.lock

This makes it slightly more convenient to test a local crosvm, by not
having to change the path to Cargo.lock twice.  It's also just cleaner.
This commit is contained in:
Alyssa Ross 2022-08-05 11:43:20 +00:00
parent 290039f8cd
commit f85bbdf2d7

View File

@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
arch = stdenv.hostPlatform.parsed.cpu.name;
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
cp ${cargoLock.lockFile} Cargo.lock
sed -i "s|/usr/share/policy/crosvm/|$PWD/seccomp/$arch/|g" \
seccomp/$arch/*.policy
'';