2023-05-23 20:54:43 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, stdenv }:
|
2016-09-03 12:02:53 +00:00
|
|
|
|
2016-06-04 06:40:17 +00:00
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "etcd";
|
2021-11-13 23:12:19 +00:00
|
|
|
version = "3.3.27";
|
2016-08-24 12:45:08 +00:00
|
|
|
|
2016-06-04 06:40:17 +00:00
|
|
|
goPackagePath = "github.com/coreos/etcd";
|
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-04-26 05:42:50 +00:00
|
|
|
owner = "etcd-io";
|
2016-06-06 10:26:56 +00:00
|
|
|
repo = "etcd";
|
2020-04-26 05:42:50 +00:00
|
|
|
rev = "v${version}";
|
2021-11-13 23:12:19 +00:00
|
|
|
sha256 = "sha256-zO+gwzaTgeFHhlkY/3AvRTEA4Yltlp+NqdlDe4dLJYg=";
|
2016-06-04 06:40:17 +00:00
|
|
|
};
|
|
|
|
|
2020-04-26 05:42:50 +00:00
|
|
|
buildPhase = ''
|
|
|
|
cd go/src/${goPackagePath}
|
|
|
|
patchShebangs .
|
|
|
|
./build
|
|
|
|
./functional/build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
install -Dm755 bin/* bin/functional/cmd/* -t $out/bin
|
2020-04-26 05:42:50 +00:00
|
|
|
'';
|
2016-06-04 06:40:17 +00:00
|
|
|
|
2020-04-26 05:42:50 +00:00
|
|
|
meta = with lib; {
|
2016-09-03 12:02:53 +00:00
|
|
|
description = "Distributed reliable key-value store for the most critical data of a distributed system";
|
|
|
|
license = licenses.asl20;
|
2020-04-26 05:42:50 +00:00
|
|
|
homepage = "https://etcd.io/";
|
2023-08-07 02:21:02 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2022-08-02 21:36:14 +00:00
|
|
|
broken = stdenv.isDarwin; # outdated golang.org/x/sys
|
2023-05-23 20:56:52 +00:00
|
|
|
knownVulnerabilities = [ "CVE-2023-32082" ];
|
2016-09-03 12:02:53 +00:00
|
|
|
};
|
2016-06-04 06:40:17 +00:00
|
|
|
}
|