2020-05-20 00:29:48 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "etcd";
|
2023-12-02 07:50:15 +00:00
|
|
|
version = "3.4.28";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2020-05-20 00:29:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "etcd-io";
|
|
|
|
repo = "etcd";
|
|
|
|
rev = "v${version}";
|
2023-12-02 07:50:15 +00:00
|
|
|
hash = "sha256-M0iD05Wk3pC56kGKeIb0bfMUpy9idMKin0+DYhBo/cw=";
|
2020-05-20 00:29:48 +00:00
|
|
|
};
|
|
|
|
|
2023-12-02 07:50:15 +00:00
|
|
|
vendorHash = "sha256-DbDIz/cbXqYHaGqNqP+wYpuiaFiZYElRXmQwBXnCbMk=";
|
|
|
|
|
2020-05-20 00:29:48 +00:00
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
./build
|
|
|
|
./functional/build
|
|
|
|
'';
|
|
|
|
|
2023-12-02 07:50:15 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-05-20 00:29:48 +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-07 02:21:02 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2020-05-20 00:29:48 +00:00
|
|
|
};
|
|
|
|
}
|