nixpkgs-suyu/pkgs/servers/etcd/default.nix
2020-04-10 17:54:53 +01:00

33 lines
770 B
Nix

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