nixpkgs/pkgs/by-name/ki/kine/package.nix
2024-12-08 18:20:26 +00:00

39 lines
860 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "kine";
version = "0.13.6";
src = fetchFromGitHub {
owner = "k3s-io";
repo = "kine";
rev = "v${version}";
hash = "sha256-4y49te+Gwyu7R1Ua5vSzYSsHgI+tbewuIkN55lNvksA=";
};
vendorHash = "sha256-Ifj1F25h+r0dYFQjZiCVEIF8Z12568z8VIXG9E/YAaQ=";
ldflags = [
"-s"
"-w"
"-X github.com/k3s-io/kine/pkg/version.Version=v${version}"
"-X github.com/k3s-io/kine/pkg/version.GitCommit=unknown"
];
env = {
"CGO_CFLAGS" = "-DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_USE_ALLOCA=1";
};
meta = {
description = "Kine is an etcdshim that translates etcd API to RDMS";
homepage = "https://github.com/k3s-io/kine";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ techknowlogick ];
mainProgram = "kine";
};
}