mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-28 01:29:35 +00:00

This reverts commit65a333600d
. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
42 lines
959 B
Nix
42 lines
959 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "nats-kafka";
|
|
version = "1.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nats-io";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-RboNlKpD+4mOx6iL6JpguR90y6Ux1x0twFcazIPj0w0=";
|
|
};
|
|
|
|
vendorHash = "sha256-Zo4lAV/1TIblTbFrZcwvVecvAAgX+8N6OmdeNyI6Ja0=";
|
|
|
|
ldflags = [
|
|
"-X github.com/nats-io/nats-kafka/server/core.Version=v${version}"
|
|
];
|
|
|
|
# do not build & install test binaries
|
|
subPackages = [ "." ];
|
|
|
|
# needs running nats-server and kafka
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "NATS to Kafka Bridging";
|
|
mainProgram = "nats-kafka";
|
|
homepage = "https://github.com/nats-io/nats-kafka";
|
|
changelog = "https://github.com/nats-io/nats-kafka/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ misuzu ];
|
|
};
|
|
}
|