2016-06-06 12:26:56 +02:00
|
|
|
{ stdenv, lib, libpcap, buildGoPackage, fetchFromGitHub }:
|
2016-06-04 08:40:17 +02:00
|
|
|
|
2016-09-03 14:02:53 +02:00
|
|
|
with lib;
|
|
|
|
|
2016-06-04 08:40:17 +02:00
|
|
|
buildGoPackage rec {
|
|
|
|
name = "etcd-${version}";
|
2018-02-26 05:51:41 +01:00
|
|
|
version = "3.3.1"; # After updating check that nixos tests pass
|
2016-06-04 08:40:17 +02:00
|
|
|
rev = "v${version}";
|
2016-08-24 14:45:08 +02:00
|
|
|
|
2016-06-04 08:40:17 +02:00
|
|
|
goPackagePath = "github.com/coreos/etcd";
|
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-04 08:40:17 +02:00
|
|
|
inherit rev;
|
2016-06-06 12:26:56 +02:00
|
|
|
owner = "coreos";
|
|
|
|
repo = "etcd";
|
2018-02-26 05:51:41 +01:00
|
|
|
sha256 = "11gzmi05y4kpnzgqc737l0wk5svxai4z17nl92jazqga6zhyavyl";
|
2016-06-04 08:40:17 +02:00
|
|
|
};
|
|
|
|
|
2017-04-23 10:26:57 +02:00
|
|
|
subPackages = [
|
|
|
|
"cmd/etcd"
|
|
|
|
"cmd/etcdctl"
|
|
|
|
"cmd/tools/benchmark"
|
|
|
|
"cmd/tools/etcd-dump-db"
|
|
|
|
"cmd/tools/etcd-dump-logs"
|
|
|
|
];
|
2016-06-04 08:40:17 +02:00
|
|
|
|
|
|
|
buildInputs = [ libpcap ];
|
2016-09-03 14:02:53 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Distributed reliable key-value store for the most critical data of a distributed system";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = https://coreos.com/etcd/;
|
|
|
|
maintainers = with maintainers; [offline];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
2016-06-04 08:40:17 +02:00
|
|
|
}
|