nixpkgs/pkgs/servers/nats-server/default.nix
2024-09-03 04:23:40 +00:00

32 lines
750 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "nats-server";
version = "2.10.20";
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
rev = "v${version}";
hash = "sha256-9IW7CdlouY0HGOGIL6XZZKL9Mr0cLfuJtfxS9SXYQZM=";
};
vendorHash = "sha256-D/3c8Sov8LJzeWN2tu6iqwnwfb3EXXnJpgONo96pmYI=";
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 ];
};
}