Skip to content

Instantly share code, notes, and snippets.

@tilpner
Created March 4, 2019 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilpner/9ccc98695428e96db3bd064c1fadbb04 to your computer and use it in GitHub Desktop.
Save tilpner/9ccc98695428e96db3bd064c1fadbb04 to your computer and use it in GitHub Desktop.
{ lib, rustPlatform, fetchFromGitHub, rustChannelOf }:
let
channel = rustChannelOf {
channel = "stable";
date = "2019-02-28";
};
targets = [ "x86_64-unknown-linux-musl" "x86_64-unknown-linux-gnu" ];
rustc = channel.rust.override { inherit targets; };
in
(rustPlatform.buildRustPackage.override {
inherit rustc; cargo = rustc;
}) rec {
name = "firecracker-${version}";
version = "0.15.0";
src = fetchFromGitHub {
owner = "firecracker-microvm";
repo = "firecracker";
rev = "1fdde1997fc763601f8a88399bc426bd5d4097cd";
sha256 = "1079zw0gqv3fhisfni95fzfzq267ywaz44vs66pihp220682z868";
};
cargoSha256 = "13sfacc850fjqg9qyicjpzzwfbhyxryxd39v3ypf1b29nd89wq0y";
meta = with lib; {
description = "Secure, fast, minimal micro-container virtualization";
homepage = http://firecracker-microvm.io;
license = licenses.asl20;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ thoughtpolice ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment