nixpkgs/pkgs/by-name/go/goflow2/package.nix

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

35 lines
678 B
Nix
Raw Normal View History

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