nixpkgs/pkgs/servers/serf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

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