mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
cni-plugins,
|
|
buildGoModule,
|
|
firecracker,
|
|
containerd,
|
|
runc,
|
|
makeWrapper,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "flintlock";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "liquidmetal-dev";
|
|
repo = "flintlock";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-WQbZUbTrg50vYvFY5ng8LtT4d6aVsUzZUIy8tMUr50M=";
|
|
};
|
|
|
|
vendorHash = "sha256-SjKxnLsC6RAg7is+ABRG1NyKX01cRNwCcW5B3Fgo/FQ=";
|
|
|
|
subPackages = [
|
|
"cmd/flintlock-metrics"
|
|
"cmd/flintlockd"
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/weaveworks/flintlock/internal/version.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
firecracker
|
|
];
|
|
|
|
postInstall = ''
|
|
for prog in flintlockd flintlock-metrics; do
|
|
wrapProgram "$out/bin/$prog" --prefix PATH : ${
|
|
lib.makeBinPath [
|
|
cni-plugins
|
|
firecracker
|
|
containerd
|
|
runc
|
|
]
|
|
}
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = "Create and manage the lifecycle of MicroVMs backed by containerd";
|
|
homepage = "https://github.com/weaveworks-liquidmetal/flintlock";
|
|
license = lib.licenses.mpl20;
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
maintainers = with lib.maintainers; [ techknowlogick ];
|
|
};
|
|
})
|