2022-02-20 05:27:41 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
buildGoModule rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "nats-server";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "2.9.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-06-16 17:23:12 +00:00
|
|
|
owner = "nats-io";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-HmjtMfSajz0vtbr48xSmY9/30u96Z6zyaTnMuSocIOg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
vendorSha256 = "sha256-ASLy0rPuCSYGyy5Pw9fj559nxO4vPPagDKAe8wM29lo=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests.nats = nixosTests.nats;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High-Performance server for NATS";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://nats.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-01-19 23:45:15 +00:00
|
|
|
maintainers = with maintainers; [ swdunlop derekcollison ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|