Skip to content

Commit

Permalink
crosvm.updateScript: update to latest git commit
Browse files Browse the repository at this point in the history
crosvm upstream have advised that we do this rather than tracking
Chrome OS.

Link: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5921156/1#message-900e2002e62f3f0d0aeeab996bf14ccf17f9d1c9
  • Loading branch information
alyssais committed Jan 30, 2025
1 parent 234a9c1 commit 6487296
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 58 deletions.
13 changes: 12 additions & 1 deletion pkgs/applications/virtualization/crosvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
virglrenderer,
wayland,
wayland-protocols,
writeShellScript,
unstableGitUpdater,
nix-update,
pkgsCross,
}:

Expand Down Expand Up @@ -69,7 +72,15 @@ rustPlatform.buildRustPackage rec {
buildFeatures = [ "virgl_renderer" ];

passthru = {
updateScript = ./update.py;
updateScript = writeShellScript "update-crosvm.sh" ''
set -ue
${lib.escapeShellArgs (unstableGitUpdater {
url = "https://chromium.googlesource.com/crosvm/crosvm.git";
hardcodeZeroVersion = true;
})}
exec ${lib.getExe nix-update} --version=skip
'';

tests = {
musl = pkgsCross.musl64.crosvm;
};
Expand Down
57 changes: 0 additions & 57 deletions pkgs/applications/virtualization/crosvm/update.py

This file was deleted.

0 comments on commit 6487296

Please sign in to comment.