2020-05-29 06:06:01 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "etcd";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.4.28";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "etcd-io";
|
|
|
|
repo = "etcd";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-M0iD05Wk3pC56kGKeIb0bfMUpy9idMKin0+DYhBo/cw=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-DbDIz/cbXqYHaGqNqP+wYpuiaFiZYElRXmQwBXnCbMk=";
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
./build
|
|
|
|
./functional/build
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 bin/* bin/functional/cmd/* -t $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Distributed reliable key-value store for the most critical data of a distributed system";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://etcd.io/";
|
2023-08-10 07:59:29 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|