mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
35 lines
678 B
Nix
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 ];
|
|
};
|
|
}
|