mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
31 lines
734 B
Nix
31 lines
734 B
Nix
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.5.0-alpha.4";
|
|
name = "etcd-${version}";
|
|
|
|
src = import ./deps.nix {
|
|
inherit stdenv lib fetchFromGitHub;
|
|
};
|
|
|
|
buildInputs = [ go ];
|
|
|
|
buildPhase = ''
|
|
export GOPATH=$src
|
|
go build -v -o etcd github.com/coreos/etcd
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv etcd $out/bin/etcd
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A highly-available key value store for shared configuration and service discovery";
|
|
homepage = http://coreos.com/using-coreos/etcd/;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|