nixpkgs/pkgs/by-name/go/goflow2/package.nix
2024-05-15 14:11:49 +01:00

35 lines
678 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
let
version = "2.1.3";
in
buildGoModule {
pname = "goflow2";
inherit version;
src = fetchFromGitHub {
owner = "netsampler";
repo = "goflow2";
rev = "v${version}";
hash = "sha256-wtvBkk+Y4koGDGN+N/w4FsdejgpCIio0g2QV35Pr/fo=";
};
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
vendorHash = "sha256-qcWeIg278V2bgFGpWwUT5JCblxfBv0/gWV1oXul/nCQ=";
meta = {
description = "High performance sFlow/IPFIX/NetFlow Collector";
homepage = "https://github.com/netsampler/goflow2";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ isabelroses ];
};
}