2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 10:12:58 +00:00
nixpkgs/pkgs/servers/etcd/default.nix

37 lines
863 B
Nix

{ lib, libpcap, buildGoPackage, fetchFromGitHub }:
with lib;
buildGoPackage rec {
name = "etcd-${version}";
version = "3.3.1"; # After updating check that nixos tests pass
rev = "v${version}";
goPackagePath = "github.com/coreos/etcd";
src = fetchFromGitHub {
inherit rev;
owner = "coreos";
repo = "etcd";
sha256 = "11gzmi05y4kpnzgqc737l0wk5svxai4z17nl92jazqga6zhyavyl";
};
subPackages = [
"cmd/etcd"
"cmd/etcdctl"
"cmd/tools/benchmark"
"cmd/tools/etcd-dump-db"
"cmd/tools/etcd-dump-logs"
];
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;
};
}