firecracker: 0.24.3 -> 0.24.4
Updated firecracker to v0.24.4. This required updating the buildPhase to point to new compilation result paths. Formatting changes were performed by `nix-update --format` (cherry picked from commit 6fc6e325e6fc6d28a3e2a862e398e773e7442179)
This commit is contained in:
parent
2cc557dcae
commit
507eabd549
|
@ -1,17 +1,17 @@
|
||||||
{ fetchurl, lib, stdenv }:
|
{ fetchurl, lib, stdenv }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.24.3";
|
version = "0.24.4";
|
||||||
|
|
||||||
suffix = {
|
suffix = {
|
||||||
x86_64-linux = "x86_64";
|
x86_64-linux = "x86_64";
|
||||||
aarch64-linux = "aarch64";
|
aarch64-linux = "aarch64";
|
||||||
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
|
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
|
||||||
|
|
||||||
dlbin = sha256: fetchurl {
|
dlbin = sha256: fetchurl {
|
||||||
url = "${baseurl}/v${version}/firecracker-v${version}-${suffix}.tgz";
|
url = "${baseurl}/v${version}/firecracker-v${version}-${suffix}.tgz";
|
||||||
sha256 = sha256."${stdenv.hostPlatform.system}";
|
sha256 = sha256."${stdenv.hostPlatform.system}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,15 +22,15 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
src = dlbin {
|
src = dlbin {
|
||||||
x86_64-linux = "sha256-i6NMVFoLm4hQJH7RnhfC0t+0DJCINoP5b/iCv9JyRdk=";
|
x86_64-linux = "sha256-EKndfLdkxn+S+2ElAyQ+mKEo5XN6kqZLuLCsQf+fKuk=";
|
||||||
aarch64-linux = "0m7xs12g97z1ipzaf7dgknf3azlah0p6bdr9i454azvzg955238b";
|
aarch64-linux = "0zzr8x776aya6f6pw0dc0a6jxgbqv3f37p1vd8mmlsdv66c4kmfb";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ":";
|
configurePhase = ":";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
mv firecracker-* firecracker
|
mv release-v${version}/firecracker-v${version}-${suffix} firecracker
|
||||||
mv jailer-* jailer
|
mv release-v${version}/jailer-v${version}-${suffix} jailer
|
||||||
chmod +x firecracker jailer
|
chmod +x firecracker jailer
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -48,9 +48,9 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Secure, fast, minimal micro-container virtualization";
|
description = "Secure, fast, minimal micro-container virtualization";
|
||||||
homepage = "http://firecracker-microvm.io";
|
homepage = "http://firecracker-microvm.io";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
maintainers = with maintainers; [ thoughtpolice ];
|
maintainers = with maintainers; [ thoughtpolice endocrimes ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue