mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
39 lines
860 B
Nix
39 lines
860 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kine";
|
|
version = "0.13.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "k3s-io";
|
|
repo = "kine";
|
|
rev = "v${version}";
|
|
hash = "sha256-xct2CkU+EeEfyhZNp1UiLY7kJnv4pbWMA4xgHGQI898=";
|
|
};
|
|
|
|
vendorHash = "sha256-EYtkhB8MZKKh6Rf91Ru/ldnP/iQsAw6W2U82mO/7L+g=";
|
|
|
|
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";
|
|
};
|
|
}
|