3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/nats-server/default.nix
2023-01-08 16:20:15 +00:00

32 lines
716 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "nats-server";
version = "2.9.11";
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
rev = "v${version}";
hash = "sha256-iYiQYGwvxW7GF32h+E1vg3x6sml7zGk40jbY8akmOnM=";
};
vendorHash = "sha256-qApohNp//N/eBljpa+D2fR19rqw8Bd8wdmME9fzqDxc=";
doCheck = false;
passthru.tests.nats = nixosTests.nats;
meta = with lib; {
description = "High-Performance server for NATS";
homepage = "https://nats.io/";
changelog = "https://github.com/nats-io/nats-server/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ swdunlop derekcollison ];
};
}