2022-06-23 23:23:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2016-06-04 13:54:28 +02:00
|
|
|
|
2022-06-23 23:23:06 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "serf";
|
2022-08-14 00:03:42 +02:00
|
|
|
version = "0.10.0";
|
2022-06-23 23:23:06 +02:00
|
|
|
rev = "a2bba5676d6e37953715ea10e583843793a0c507";
|
2016-06-04 13:54:28 +02:00
|
|
|
|
2017-02-17 19:50:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hashicorp";
|
|
|
|
repo = "serf";
|
2022-06-23 23:23:06 +02:00
|
|
|
rev = "v${version}";
|
2022-08-14 00:03:42 +02:00
|
|
|
sha256 = "sha256-5P2Pq2yzTGyw0hLwHdJB4YB+du0D8Q3MagRH3WXZ100=";
|
2016-06-04 13:54:28 +02:00
|
|
|
};
|
|
|
|
|
2022-08-14 00:03:42 +02:00
|
|
|
vendorSha256 = "sha256-2v2KcULgrwMRVGA91p7LJQPyQqwHLHhJa1WSivXHQG4=";
|
2022-06-23 23:23:06 +02: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-06-23 23:23:06 +02: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";
|
2017-02-17 19:50:38 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ pradeepchhetri ];
|
|
|
|
};
|
2016-06-04 13:54:28 +02:00
|
|
|
}
|