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:
parent
290039f8cd
commit
f85bbdf2d7
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user