1
0
Fork 0
nur/pkgs/kv/default.nix

34 lines
703 B
Nix
Raw Permalink Normal View History

{
buildGoModule,
fetchFromGitea,
lib,
...
}:
buildGoModule rec {
pname = "kv";
version = "0.0.4";
src = fetchFromGitea {
domain = "git.jojodev.com";
owner = "jolheiser";
repo = "kv";
rev = "v${version}";
sha256 = "sha256-VkFzb44FiuV0LMxXwjoEaFvfc5ExHIUcjrjN7yxXnHo=";
};
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;
};
}