2023-08-20 21:16:56 +00:00
|
|
|
{
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitea,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2023-07-05 19:41:29 +00:00
|
|
|
buildGoModule rec {
|
2023-07-05 16:15:58 +00:00
|
|
|
pname = "tmpl";
|
2023-08-20 21:16:56 +00:00
|
|
|
version = "0.4.0";
|
2023-07-05 16:15:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "git.jojodev.com";
|
|
|
|
owner = "jolheiser";
|
|
|
|
repo = "tmpl";
|
|
|
|
rev = "v${version}";
|
2023-08-20 21:16:56 +00:00
|
|
|
sha256 = "sha256-+7ovltRNhM8+STv629CC3fk9FaQDrClW6r1YcnV7Vqo=";
|
2023-07-05 16:15:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-PmguDbjTSz0jzj1pwUNZrO1aAFNkWSo/FAef29TjsGI=";
|
|
|
|
|
2023-08-20 21:16:56 +00:00
|
|
|
ldflags = ["-s" "-w" "-X=go.jolheiser.com/tmpl/cmd.Version=${version}"];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -vr ./contrib/tmpl-completions.nu $out/share/tmpl-completions.nu
|
|
|
|
'';
|
2023-07-05 16:15:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Template automation for bootstrapping projects";
|
|
|
|
homepage = "https://git.jojodev.com/jolheiser/tmpl";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|