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-23 21:23:06 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2016-06-04 11:54:28 +00:00
2022-06-23 21:23:06 +00:00
buildGoModule rec {
pname = "serf";
2022-10-05 22:24:48 +00:00
version = "0.10.1";
2022-06-23 21:23:06 +00:00
rev = "a2bba5676d6e37953715ea10e583843793a0c507";
2016-06-04 11:54:28 +00:00
2017-02-17 18:50:38 +00:00
src = fetchFromGitHub {
owner = "hashicorp";
repo = "serf";
2022-06-23 21:23:06 +00:00
rev = "v${version}";
2022-10-05 22:24:48 +00:00
sha256 = "sha256-8cWSWRfge5UjNzgA1Qp4AzbgIfGBum/ghHcB8H8MyCE=";
2016-06-04 11:54:28 +00:00
};
2022-10-05 22:24:48 +00:00
vendorSha256 = "sha256-6Kw0Co6vaBNkvVyK64wo9/39YF5UwuJg04EPoYwCP1c=";
2022-06-23 21:23:06 +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;
meta = with lib; {
2022-06-23 21:23:06 +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";
2017-02-17 18:50:38 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ pradeepchhetri ];
};
2016-06-04 11:54:28 +00:00
}