nixpkgs/pkgs/servers/etcd/3.4.nix

35 lines
775 B
Nix
Raw Permalink Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "etcd";
2023-12-02 07:50:15 +00:00
version = "3.4.28";
src = fetchFromGitHub {
owner = "etcd-io";
repo = "etcd";
rev = "v${version}";
2023-12-02 07:50:15 +00:00
hash = "sha256-M0iD05Wk3pC56kGKeIb0bfMUpy9idMKin0+DYhBo/cw=";
};
2023-12-02 07:50:15 +00:00
vendorHash = "sha256-DbDIz/cbXqYHaGqNqP+wYpuiaFiZYElRXmQwBXnCbMk=";
buildPhase = ''
patchShebangs .
./build
./functional/build
'';
2023-12-02 07:50:15 +00:00
doCheck = false;
installPhase = ''
install -Dm755 bin/* bin/functional/cmd/* -t $out/bin
'';
meta = with lib; {
description = "Distributed reliable key-value store for the most critical data of a distributed system";
license = licenses.asl20;
homepage = "https://etcd.io/";
2023-08-07 02:21:02 +00:00
maintainers = with maintainers; [ offline ];
};
}