2022-12-17 10:02:37 +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";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "2.9.12";
|
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}";
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-IhzbtTH8Vr+Z1Z9Xzz/CbmxDaR6ygdebEqz2ELa4N3E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorHash = "sha256-tUqUB9M7doUmYRAKmzos93PCizGlHe61rpMVe0z3hVo=";
|
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/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/nats-io/nats-server/releases/tag/v${version}";
|
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
|
|
|
};
|
|
|
|
}
|