Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Aug 14, 2021
0 parents commit e58a671
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.direnv
/.envrc
/result
28 changes: 28 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ stdenv, lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
pname = "kine";
version = "0.7.2";

src = fetchFromGitHub {
owner = "k3s-io";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zFjT3Ngt8v37qv25N4UNv3xm3Ss4SGf68B9nu09LiWg=";
};

buildFlagsArray = [
"-ldflags=-X github.com/k3s-io/kine.Version=v${version} -X github.com/k3s-io/kine.GitCommit=0000000"
];

subPackages = [ "." ];
vendorSha256 = "sha256-Me9Vn/ivTXJgnx9/sngcN5ixWKhxvq46a+kmk2fu2V4=";

meta = with lib; {
description = "Kine is an etcdshim that translates etcd API to sqlite, Postgres, Mysql, and dqlite";
homepage = "https://github.com/k3s-io/kine";
license = licenses.asl20;
maintainers = with maintainers; [ mikroskeem ];
platforms = platforms.linux ++ platforms.darwin;
};
}

0 comments on commit e58a671

Please sign in to comment.