32 lines
749 B
Nix
32 lines
749 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "nats-server";
|
|
version = "2.10.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nats-io";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-ncNiU5n7LvVXEgDiZAu+OzbtAkGHyrbOsGLTSMMIVps=";
|
|
};
|
|
|
|
vendorHash = "sha256-akkDKIRp2uG+6z/YVB2M6BxLQGNt1qPhvW/BwnjsBHA=";
|
|
|
|
doCheck = false;
|
|
|
|
passthru.tests.nats = nixosTests.nats;
|
|
|
|
meta = with lib; {
|
|
description = "High-Performance server for NATS";
|
|
mainProgram = "nats-server";
|
|
homepage = "https://nats.io/";
|
|
changelog = "https://github.com/nats-io/nats-server/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ swdunlop derekcollison ];
|
|
};
|
|
}
|