mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
a83e82c4e9
Co-authored-by: h7x4 <h7x4@nani.wtf>
40 lines
1002 B
Nix
40 lines
1002 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "yanic";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FreifunkBremen";
|
|
repo = "yanic";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-++tF6nTFIDeqWSqlBDXw/zEfl5YYa4ufzVZaUG2c8Zo=";
|
|
};
|
|
|
|
vendorHash = "sha256-D9V53/+C/+iv1U4kVrYWzJ8iD0MA1QcR8f5ifejFhLo=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
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; {
|
|
description = "A tool to collect and aggregate respondd data";
|
|
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";
|
|
};
|
|
}
|