2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "yanic";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.6.2";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreifunkBremen";
|
|
|
|
repo = "yanic";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-z2vr1QmRCo8y4hopWP14xSV7lsWKkCzK9OehlVLFdIg=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-6UiiajKLzW5e7y0F6GMYDZP6xTyOiccLIKlwvOY7LRo=";
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/FreifunkBremen/yanic/cmd.VERSION=${version}"
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd yanic \
|
|
|
|
--bash <($out/bin/yanic completion bash) \
|
|
|
|
--fish <($out/bin/yanic completion fish) \
|
|
|
|
--zsh <($out/bin/yanic completion zsh)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to collect and aggregate respondd data";
|
2024-01-25 14:12:00 +00:00
|
|
|
homepage = "https://github.com/FreifunkBremen/yanic";
|
|
|
|
changelog = "https://github.com/FreifunkBremen/yanic/releases/tag/${src.rev}";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ herbetom ];
|
|
|
|
mainProgram = "yanic";
|
|
|
|
};
|
|
|
|
}
|