blob: 48e5f2cea2270d23b07a4b90ec2e9cb9e250d9d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.6.3";
name = "serfdom-${version}";
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o serf github.com/hashicorp/serf
'';
installPhase = ''
mkdir -p $out/bin
mv serf $out/bin/serf
'';
meta = with stdenv.lib; {
description = "A service discovery and orchestration tool that is decentralized, highly available, and fault tolerant";
homepage = http://www.serfdom.io/;
license = licenses.mpl20;
maintainers = with maintainers; [ msackman cstrahan ];
platforms = platforms.unix;
};
}
|