nixpkgs/pkgs/servers/etcd/default.nix

37 lines
871 B
Nix
Raw Normal View History

{ stdenv, lib, libpcap, buildGoPackage, fetchFromGitHub }:
2016-06-04 06:40:17 +00:00
2016-09-03 12:02:53 +00:00
with lib;
2016-06-04 06:40:17 +00:00
buildGoPackage rec {
name = "etcd-${version}";
version = "3.1.6"; # After updating check that nixos tests pass
2016-06-04 06:40:17 +00:00
rev = "v${version}";
2016-08-24 12:45:08 +00:00
2016-06-04 06:40:17 +00:00
goPackagePath = "github.com/coreos/etcd";
src = fetchFromGitHub {
2016-06-04 06:40:17 +00:00
inherit rev;
owner = "coreos";
repo = "etcd";
sha256 = "1qgi6zxnijzr644w2da2gbn3gw2qwk6a3z3qmdln0r2rjnm70sx0";
2016-06-04 06:40:17 +00:00
};
subPackages = [
"cmd/etcd"
"cmd/etcdctl"
"cmd/tools/benchmark"
"cmd/tools/etcd-dump-db"
"cmd/tools/etcd-dump-logs"
];
2016-06-04 06:40:17 +00:00
buildInputs = [ libpcap ];
2016-09-03 12:02:53 +00: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 06:40:17 +00:00
}