firecracker: Add versionCheckHook (#465961)
This commit is contained in:
@@ -7,16 +7,17 @@
|
||||
libseccomp,
|
||||
rust-bindgen,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "firecracker";
|
||||
version = "1.13.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "firecracker-microvm";
|
||||
repo = "firecracker";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ZrIvz5hmP0d8ADF723Z+lOP9hi5nYbi6WUtV4wTp73U=";
|
||||
};
|
||||
|
||||
@@ -78,6 +79,11 @@ rustPlatform.buildRustPackage rec {
|
||||
"--skip=resource_limits::tests::test_set_resource_limits"
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
doInstallCheck = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
@@ -93,7 +99,7 @@ rustPlatform.buildRustPackage rec {
|
||||
meta = {
|
||||
description = "Secure, fast, minimal micro-container virtualization";
|
||||
homepage = "http://firecracker-microvm.io";
|
||||
changelog = "https://github.com/firecracker-microvm/firecracker/releases/tag/v${version}";
|
||||
changelog = "https://github.com/firecracker-microvm/firecracker/releases/tag/v${finalAttrs.version}";
|
||||
mainProgram = "firecracker";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
@@ -104,4 +110,4 @@ rustPlatform.buildRustPackage rec {
|
||||
techknowlogick
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user