nixpkgs/pkgs/servers/etcd/3.3.nix

36 lines
847 B
Nix
Raw Normal View History

2020-04-26 06:42:50 +01:00
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
2016-09-03 13:02:53 +01:00
2016-06-04 07:40:17 +01:00
buildGoPackage rec {
pname = "etcd";
2021-11-13 23:12:19 +00:00
version = "3.3.27";
2016-08-24 13:45:08 +01:00
2016-06-04 07:40:17 +01:00
goPackagePath = "github.com/coreos/etcd";
src = fetchFromGitHub {
2020-04-26 06:42:50 +01:00
owner = "etcd-io";
repo = "etcd";
2020-04-26 06:42:50 +01:00
rev = "v${version}";
2021-11-13 23:12:19 +00:00
sha256 = "sha256-zO+gwzaTgeFHhlkY/3AvRTEA4Yltlp+NqdlDe4dLJYg=";
2016-06-04 07:40:17 +01:00
};
2020-04-26 06:42:50 +01:00
buildPhase = ''
cd go/src/${goPackagePath}
patchShebangs .
./build
./functional/build
'';
installPhase = ''
install -Dm755 bin/* bin/functional/cmd/* -t $out/bin
2020-04-26 06:42:50 +01:00
'';
2016-06-04 07:40:17 +01:00
2020-09-01 01:13:42 +01:00
passthru.tests = { inherit (nixosTests) etcd etcd-cluster; };
2016-09-03 13:02:53 +01:00
2020-04-26 06:42:50 +01:00
meta = with lib; {
2016-09-03 13:02:53 +01:00
description = "Distributed reliable key-value store for the most critical data of a distributed system";
license = licenses.asl20;
2020-04-26 06:42:50 +01:00
homepage = "https://etcd.io/";
2020-05-20 04:27:36 +01:00
maintainers = with maintainers; [ offline zowoq ];
2016-09-03 13:02:53 +01:00
};
2016-06-04 07:40:17 +01:00
}