1
0
Fork 0
Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-08-20 20:32:32 -05:00
parent 14d58d4b38
commit 18312c381e
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 34 additions and 0 deletions

View File

@ -15,6 +15,7 @@
git-age = pkgs.callPackage ./pkgs/git-age {}; git-age = pkgs.callPackage ./pkgs/git-age {};
gomodinit = pkgs.callPackage ./pkgs/gomodinit {}; gomodinit = pkgs.callPackage ./pkgs/gomodinit {};
imp = pkgs.callPackage ./pkgs/imp {}; imp = pkgs.callPackage ./pkgs/imp {};
kv = pkgs.callPackage ./pkgs/kx {};
tmpl = pkgs.callPackage ./pkgs/tmpl {}; tmpl = pkgs.callPackage ./pkgs/tmpl {};
# Other projects # Other projects

View File

@ -0,0 +1,33 @@
{
buildGoModule,
fetchFromGitea,
lib,
...
}:
buildGoModule rec {
pname = "kv";
version = "0.0.3";
src = fetchFromGitea {
domain = "git.jojodev.com";
owner = "jolheiser";
repo = "kv";
rev = "v${version}";
sha256 = "sha256-55He6BT9QgcJ20Ia7SQFMUmLkwDooD5ICCfLq7kk+FM=";
};
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;
};
}