2018-11-29 23:10:35 +00:00
|
|
|
{ fetchurl, stdenv }:
|
|
|
|
|
|
|
|
let
|
2019-01-13 02:12:08 +00:00
|
|
|
version = "0.13.0";
|
2018-11-29 23:10:35 +00:00
|
|
|
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
|
|
|
|
|
|
|
|
fetchbin = name: sha256: fetchurl {
|
|
|
|
url = "${baseurl}/v${version}/${name}-v${version}";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2019-01-13 02:12:08 +00:00
|
|
|
firecracker-bin = fetchbin "firecracker" "1wdcy4vmnx216jnza7bz6czlqpsjrnpqfsb5d322ld4gzbylm718";
|
|
|
|
jailer-bin = fetchbin "jailer" "0k0sc5138bh35ciim2l78ma9g5x18dw098f2ar5y31ybr8i4q60y";
|
2018-11-29 23:10:35 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "firecracker-${version}";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
srcs = [ firecracker-bin jailer-bin ];
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -D ${firecracker-bin} $out/bin/firecracker
|
|
|
|
install -D ${jailer-bin} $out/bin/jailer
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Secure, fast, minimal micro-container virtualization";
|
|
|
|
homepage = http://firecracker-microvm.io;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|