2014-06-23 09:42:37 +01:00
|
|
|
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
2014-02-27 18:11:08 +00:00
|
|
|
|
2014-06-23 09:42:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-25 16:51:54 +01:00
|
|
|
version = "0.6.3";
|
2014-06-23 09:42:37 +01:00
|
|
|
name = "serfdom-${version}";
|
2014-02-27 18:11:08 +00:00
|
|
|
|
2014-06-23 09:42:37 +01:00
|
|
|
src = import ./deps.nix {
|
|
|
|
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
|
|
|
|
};
|
2014-02-27 18:11:08 +00:00
|
|
|
|
2014-06-23 09:42:37 +01:00
|
|
|
buildInputs = [ go ];
|
2014-02-27 18:11:08 +00:00
|
|
|
|
2014-06-23 09:42:37 +01:00
|
|
|
buildPhase = ''
|
|
|
|
export GOPATH=$src
|
|
|
|
go build -v -o serf github.com/hashicorp/serf
|
|
|
|
'';
|
2014-02-27 18:11:08 +00:00
|
|
|
|
2014-06-23 09:42:37 +01:00
|
|
|
installPhase = ''
|
2014-07-01 10:25:41 +01:00
|
|
|
mkdir -p $out/bin
|
2014-06-23 09:42:37 +01:00
|
|
|
mv serf $out/bin/serf
|
|
|
|
'';
|
2014-02-27 18:11:08 +00:00
|
|
|
|
2014-06-23 09:42:37 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-07-01 10:25:41 +01:00
|
|
|
description = "A service discovery and orchestration tool that is decentralized, highly available, and fault tolerant";
|
2014-06-23 09:42:37 +01:00
|
|
|
homepage = http://www.serfdom.io/;
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ msackman cstrahan ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|