[RFC PATCH nixpkgs 4/9] crosvm.updateScript: don't vendor Cargo.lock

Alyssa Ross
2022-09-28T17:01:46Z

This is no longer required as crosvm now includes a Cargo.lock in-tree
again.

Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
---
pkgs/applications/virtualization/crosvm/update.py | 13 -------------
1 file changed, 13 deletions(-)

diff --git a/pkgs/applications/virtualization/crosvm/update.py b/pkgs/applications/virtualization/crosvm/update.py
index 64adec42957..7a94aedefdb 100755
--- a/pkgs/applications/virtualization/crosvm/update.py
+++ b/pkgs/applications/virtualization/crosvm/update.py
@@ -50,16 +50,3 @@ with urlopen(f'https://chromium.googlesource.com/chromiumos/platform/crosvm/+log

# Update the version, git revision, and hash in crosvm's default.nix.
subprocess.run(['update-source-version', 'crosvm', f'--rev={rev}', version])
-
-# Find the path to crosvm's default.nix, so Cargo.lock can be written
-# into the same directory.
-argv = ['nix-instantiate', '--eval', '--json', '-A', 'crosvm.meta.position']
-position = json.loads(subprocess.check_output(argv).decode('utf-8'))
-filename = re.match(r'[^:]*', position)[0]
-
-# Generate a Cargo.lock
-run = ['.',
- dirname(abspath(__file__)) + '/generate-cargo.sh',
- dirname(filename) + '/Cargo.lock']
-expr = '(import ./. {}).crosvm.overrideAttrs (_: { dontCargoSetupPostUnpack = true; })'
-subprocess.run(['nix-shell', '-E', expr, '--run', shlex.join(run)])
--
2.37.1