Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pkgs/applications/virtualization/crosvm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, libcap, libdrm, libepoxy, minijail, virglrenderer, wayland, wayland-protocols
}:

rustPlatform.buildRustPackage rec {
(rustPlatform.buildRustPackage rec {
pname = "crosvm";
version = "107.1";

Expand Down Expand Up @@ -60,4 +60,9 @@ rustPlatform.buildRustPackage rec {
license = licenses.bsd3;
platforms = [ "aarch64-linux" "x86_64-linux" ];
};
}
})
.overrideAttrs (a:
lib.warnIf (a.NIX_CFLAGS_COMPILE or "" != "")
''you have set `NIX_CFLAGS_COMPILE` to ${a.NIX_CFLAGS_COMPILE}
this may cause crosvm's build scripts to produce an empty
constants.json and then fail to complete the build'' {})