2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "serf";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.10.1";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "a2bba5676d6e37953715ea10e583843793a0c507";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = "serf";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-8cWSWRfge5UjNzgA1Qp4AzbgIfGBum/ghHcB8H8MyCE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-6Kw0Co6vaBNkvVyK64wo9/39YF5UwuJg04EPoYwCP1c=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/serf" ];
|
|
|
|
|
|
|
|
# These values are expected by version/version.go
|
|
|
|
# https://github.com/hashicorp/serf/blob/7faa1b06262f70780c3c35ac25a4c96d754f06f3/version/version.go#L8-L22
|
|
|
|
ldflags = lib.mapAttrsToList
|
|
|
|
(n: v: "-X github.com/hashicorp/serf/version.${n}=${v}") {
|
|
|
|
GitCommit = rev;
|
|
|
|
Version = version;
|
|
|
|
VersionPrerelease = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
# There are no tests for cmd/serf.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-26 10:26:21 +00:00
|
|
|
description = "Service orchestration and management tool";
|
|
|
|
longDescription = ''
|
|
|
|
Serf is a decentralized solution for service discovery and orchestration
|
|
|
|
that is lightweight, highly available, and fault tolerant.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.serf.io";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ pradeepchhetri ];
|
|
|
|
};
|
|
|
|
}
|