nixpkgs/pkgs/servers/etcd/3.4.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
775 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "etcd";
2023-12-02 08:50:15 +01:00
version = "3.4.28";
src = fetchFromGitHub {
owner = "etcd-io";
repo = "etcd";
rev = "v${version}";
2023-12-02 08:50:15 +01:00
hash = "sha256-M0iD05Wk3pC56kGKeIb0bfMUpy9idMKin0+DYhBo/cw=";
};
2023-12-02 08:50:15 +01:00
vendorHash = "sha256-DbDIz/cbXqYHaGqNqP+wYpuiaFiZYElRXmQwBXnCbMk=";
buildPhase = ''
patchShebangs .
./build
./functional/build
'';
2023-12-02 08:50:15 +01: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 04:21:02 +02:00
maintainers = with maintainers; [ offline ];
};
}