2023-08-21 01:32:32 +00:00
|
|
|
{
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitea,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kv";
|
2023-08-21 02:06:03 +00:00
|
|
|
version = "0.0.4";
|
2023-08-21 01:32:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.jojodev.com";
|
|
|
|
owner = "jolheiser";
|
|
|
|
repo = "kv";
|
|
|
|
rev = "v${version}";
|
2023-08-21 02:06:03 +00:00
|
|
|
sha256 = "sha256-VkFzb44FiuV0LMxXwjoEaFvfc5ExHIUcjrjN7yxXnHo=";
|
2023-08-21 01:32:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-COA/YSyJanoxvYG3LFmp9eCwVJuqI9PZV1fLOs4MSPo=";
|
|
|
|
|
|
|
|
ldflags = ["-s" "-w" "-X=main.Version=${version}"];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -vr ./contrib/kv-completions.nu $out/share/kv-completions.nu
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Key/Value store";
|
|
|
|
homepage = "https://git.jojodev.com/jolheiser/kv";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|