1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/servers/nats-server/default.nix
2024-07-27 21:24:29 +00:00

33 lines
750 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "nats-server";
version = "2.10.18";
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
rev = "v${version}";
hash = "sha256-xoCeP/6qKNeqsqVPKfybdwVs50QPBS82zBGxwOXrVGU=";
};
vendorHash = "sha256-6Dgk/F0gZlULpEZpWvJndHdp7AyggClOb3FrwotSjRs=";
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 ];
};
}