1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

serfdom: 0.8.1 -> 0.9.8

This commit is contained in:
Azat Bahawi 2022-06-24 00:23:06 +03:00
parent e2851dcdae
commit 9741b60e02
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -1,23 +1,43 @@
{ lib, buildGoPackage, fetchFromGitHub }: { lib
, buildGoModule
, fetchFromGitHub
}:
buildGoPackage rec { buildGoModule rec {
pname = "serf"; pname = "serf";
version = "0.8.1"; version = "0.9.8";
rev = "v${version}"; rev = "a2bba5676d6e37953715ea10e583843793a0c507";
goPackagePath = "github.com/hashicorp/serf";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = "serf"; repo = "serf";
inherit rev; rev = "v${version}";
sha256 = "1arakjvhyasrk52vhxas2ghlrby3i3wj59r7sjrkbpln2cdbqnlx"; sha256 = "sha256-UWCxzwV2bcT8Sfl296HpBThe+qYX19M7sNcEJHs/sXc=";
}; };
vendorSha256 = "sha256-DaPcCuj0KGpuOC6XynltMBE9wO7w5qKrTChC401249o=";
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; { meta = with lib; {
description = "Tool for service orchestration and management"; description = "Service orchestration and management tool";
homepage = "https://www.serf.io/"; longDescription = ''
platforms = platforms.linux ++ platforms.darwin; 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; license = licenses.mpl20;
maintainers = with maintainers; [ pradeepchhetri ]; maintainers = with maintainers; [ pradeepchhetri ];
}; };