nixpkgs/firecracker: init at 0.12.0
This currently uses a binary-only package, since building jailer/firecracker all on their own is somewhat complex from my attempts. This will later be changed into a source-only build, ideally. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
9c86e8faf5
commit
814319f1ae
35
pkgs/applications/virtualization/firecracker/default.nix
Normal file
35
pkgs/applications/virtualization/firecracker/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ fetchurl, stdenv }:
|
||||
|
||||
let
|
||||
version = "0.12.0";
|
||||
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
|
||||
|
||||
fetchbin = name: sha256: fetchurl {
|
||||
url = "${baseurl}/v${version}/${name}-v${version}";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
firecracker-bin = fetchbin "firecracker" "0jk9w5kagqp3w668c1x0g4yyahmy7696pm0bkhv066rrdpcqpw66";
|
||||
jailer-bin = fetchbin "jailer" "1fcxzpnapnccklgbi4bis3f6c9fki2daxvzg9l7433vfqz2zbyjl";
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -1400,6 +1400,8 @@ in
|
|||
|
||||
fileshelter = callPackage ../servers/web-apps/fileshelter { };
|
||||
|
||||
firecracker = callPackage ../applications/virtualization/firecracker { };
|
||||
|
||||
fsmon = callPackage ../tools/misc/fsmon { };
|
||||
|
||||
fsql = callPackage ../tools/misc/fsql { };
|
||||
|
|
Loading…
Reference in a new issue