Merge pull request #86038 from zowoq/etcd

etcd: 3.3.13 -> 3.3.20
This commit is contained in:
Mario Rodas 2020-04-27 04:44:31 -05:00 committed by GitHub
commit 7320cdf284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +1,40 @@
{ lib, libpcap, buildGoPackage, fetchFromGitHub }: { lib, buildGoPackage, fetchFromGitHub, nixosTests }:
with lib;
buildGoPackage rec { buildGoPackage rec {
pname = "etcd"; pname = "etcd";
version = "3.3.13"; # After updating check that nixos tests pass version = "3.3.20";
rev = "v${version}";
# change to "go.etcd.io/etcd" for >= 3.4
goPackagePath = "github.com/coreos/etcd"; goPackagePath = "github.com/coreos/etcd";
src = fetchFromGitHub { src = fetchFromGitHub {
inherit rev; owner = "etcd-io";
owner = "coreos";
repo = "etcd"; repo = "etcd";
sha256 = "1kac4qfr83f2hdz35403f1ald05wc85vvhw79vxb431n61jvyaqy"; rev = "v${version}";
sha256 = "1iqq12kkky3cl28k7fabqqyx1i0a2wmbkq0bs8yhiwywp076k08w";
}; };
subPackages = [ buildPhase = ''
"cmd/etcd" cd go/src/${goPackagePath}
"cmd/etcdctl" patchShebangs .
]; ./build
./functional/build
'';
buildInputs = [ libpcap ]; installPhase = ''
install -Dm755 bin/* bin/functional/cmd/* -t $bin/bin
'';
meta = { passthru.tests = with nixosTests; {
etcd = etcd;
etcd-cluster = etcd-cluster;
};
meta = with lib; {
description = "Distributed reliable key-value store for the most critical data of a distributed system"; description = "Distributed reliable key-value store for the most critical data of a distributed system";
license = licenses.asl20; license = licenses.asl20;
homepage = "https://coreos.com/etcd/"; homepage = "https://etcd.io/";
maintainers = with maintainers; [offline]; maintainers = with maintainers; [ offline ];
platforms = with platforms; linux; platforms = platforms.unix;
}; };
} }