Merge pull request #333353 from techknowlogick/bump-firecracker

firecracker: 1.7.0 -> 1.8.0
This commit is contained in:
Donovan Glover 2024-08-10 01:32:26 +00:00 committed by GitHub
commit e34c7a6b2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 16 deletions

View File

@ -1,20 +1,29 @@
{ fetchurl, lib, stdenv }:
{
fetchurl,
lib,
stdenv,
}:
let
version = "1.7.0";
version = "1.8.0";
# nixpkgs-update: no auto update
suffix = {
x86_64-linux = "x86_64";
aarch64-linux = "aarch64";
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
suffix =
{
x86_64-linux = "x86_64";
aarch64-linux = "aarch64";
}
."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
dlbin = sha256: fetchurl {
url = "${baseurl}/v${version}/firecracker-v${version}-${suffix}.tgz";
sha256 = sha256."${stdenv.hostPlatform.system}"or (throw "unsupported system ${stdenv.hostPlatform.system}");
};
dlbin =
hash:
fetchurl {
url = "${baseurl}/v${version}/firecracker-v${version}-${suffix}.tgz";
hash =
hash."${stdenv.hostPlatform.system}" or (throw "unsupported system ${stdenv.hostPlatform.system}");
};
in
stdenv.mkDerivation {
@ -23,8 +32,8 @@ stdenv.mkDerivation {
sourceRoot = ".";
src = dlbin {
x86_64-linux = "sha256-Vb0+bVmf3RCONuUvmu4jGfBsGKkPL6SbZOk/3wb1/1M=";
aarch64-linux = "sha256-PLoQA4a6qulxSns/ZRSgn6EtHr46/hstNhP1pAHt9VA=";
x86_64-linux = "sha256-vImb2u+NCqew+vv0miv2R+AphVj0+u5Elw2HocbRri0=";
aarch64-linux = "sha256-ZLSc61MWfXYWv0/Sxz3vaWoyAlnqbgfPFEfJCRxfknE=";
};
dontConfigure = true;
@ -53,7 +62,14 @@ stdenv.mkDerivation {
changelog = "https://github.com/firecracker-microvm/firecracker/releases/tag/v${version}";
mainProgram = "firecracker";
license = licenses.asl20;
platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ thoughtpolice qjoly ];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
maintainers = with maintainers; [
thoughtpolice
qjoly
techknowlogick
];
};
}

View File

@ -5108,8 +5108,6 @@ with pkgs;
fioctl = callPackage ../tools/admin/fioctl { };
firecracker = callPackage ../applications/virtualization/firecracker { };
firectl = callPackage ../applications/virtualization/firectl { };
firestarter = callPackage ../applications/misc/firestarter { };