2014-06-23 10:55:46 +02:00
|
|
|
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-12-29 01:53:49 +01:00
|
|
|
version = "2.0.0-rc.1";
|
2014-06-23 10:55:46 +02:00
|
|
|
name = "etcd-${version}";
|
|
|
|
|
|
|
|
src = import ./deps.nix {
|
2014-11-21 13:48:02 +01:00
|
|
|
inherit stdenv lib fetchFromGitHub;
|
2014-06-23 10:55:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export GOPATH=$src
|
|
|
|
go build -v -o etcd github.com/coreos/etcd
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-22 11:01:32 +02:00
|
|
|
mkdir -p $out/bin
|
2014-06-23 10:55:46 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|