e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
31 lines
643 B
Nix
31 lines
643 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "goflow2";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netsampler";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-RgHCUuP2EE38X6iMaYD2a8f/C2fBcBEHM5ErlKBkMqI=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.version=${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-9Ebrkizt/r60Kxh291CLzwKIkpdQqJuVYQ2umxih9lo=";
|
|
|
|
meta = with lib; {
|
|
description = "High performance sFlow/IPFIX/NetFlow Collector";
|
|
homepage = "https://github.com/netsampler/goflow2";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ yuka ];
|
|
};
|
|
}
|