aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/servers/etcd/default.nix
blob: a5083a20cb779b02fad39596a4a187a623897746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, libpcap, buildGoPackage, fetchFromGitHub }:

with lib;

buildGoPackage rec {
  pname = "etcd";
  version = "3.3.13"; # After updating check that nixos tests pass
  rev = "v${version}";

  goPackagePath = "github.com/coreos/etcd";

  src = fetchFromGitHub {
    inherit rev;
    owner = "coreos";
    repo = "etcd";
    sha256 = "1kac4qfr83f2hdz35403f1ald05wc85vvhw79vxb431n61jvyaqy";
  };

  subPackages = [
    "cmd/etcd"
    "cmd/etcdctl"
  ];

  buildInputs = [ libpcap ];

  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;
  };
}