e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
43 lines
1,017 B
Nix
43 lines
1,017 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kraftkit";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unikraft";
|
|
repo = "kraftkit";
|
|
rev = "v${version}";
|
|
hash = "sha256-PfZBuTeibXhKH/upLiCw2jrS2YWTXjj6BABhyUCGMlM=";
|
|
};
|
|
|
|
vendorHash = "sha256-3zmtqxgCC9HqUoyMR8xse+U8U/71HYHCHBWzthZiEmw=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X kraftkit.sh/internal/version.version=${version}"
|
|
];
|
|
|
|
subPackages = [ "cmd/kraft" ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
extraArgs = [ "--version-regex" "^v([0-9.]+)" ];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Build and use highly customized and ultra-lightweight unikernel VMs";
|
|
homepage = "https://github.com/unikraft/kraftkit";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
|
mainProgram = "kraft";
|
|
broken = stdenv.isDarwin; # > machine/platform/iterator_v1alpha1.go:32:34: undefined: hostSupportedStrategies
|
|
};
|
|
}
|