9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
31 lines
643 B
Nix
31 lines
643 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "goflow2";
|
|
version = "1.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netsampler";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-0E3iSO+ObaPhIUerF4y5UygJMSMJNTJwI6RqHunqrZ0=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-tNrCsCKBoUsrCOlbI1FUoksWoI4jUiYLF+A8Fjfe9Qk=";
|
|
|
|
meta = with lib; {
|
|
description = "High performance sFlow/IPFIX/NetFlow Collector";
|
|
homepage = "https://github.com/netsampler/goflow2";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ yuka ];
|
|
};
|
|
}
|