nixpkgs/pkgs/tools/networking/goflow2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
643 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "goflow2";
2023-08-12 05:57:32 +00:00
version = "2.0.0";
src = fetchFromGitHub {
owner = "netsampler";
repo = pname;
rev = "v${version}";
2023-08-12 05:57:32 +00:00
hash = "sha256-tY2+4lGy+2thpRDNeTw1kfOtZvOspXCYU7dhYcckbRo=";
};
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
2023-08-12 05:57:32 +00:00
vendorHash = "sha256-KcknR2IaHz2EzOFwSHppbmNDISrFdNoB4QmLT74/KWY=";
meta = with lib; {
description = "High performance sFlow/IPFIX/NetFlow Collector";
homepage = "https://github.com/netsampler/goflow2";
license = licenses.bsd3;
maintainers = with maintainers; [ yuka ];
};
}