Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "serf";
|
|
version = "0.10.2";
|
|
rev = "a2bba5676d6e37953715ea10e583843793a0c507";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "serf";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-8kMQu3UYGihlYW7rdh1IkvRR/FgFK/N+iay0y6qOOWE=";
|
|
};
|
|
|
|
vendorHash = "sha256-aNAbE8yFp8HUgdRtt/3eVz4VAaqSTPB4XKKLl1o7YRc=";
|
|
|
|
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; {
|
|
description = "Service orchestration and management tool";
|
|
mainProgram = "serf";
|
|
longDescription = ''
|
|
Serf is a decentralized solution for service discovery and orchestration
|
|
that is lightweight, highly available, and fault tolerant.
|
|
'';
|
|
homepage = "https://www.serf.io";
|
|
license = licenses.mpl20;
|
|
};
|
|
}
|