blob: 5282541e2f9e39e3a26f3e73488aebc4ffb8f494 (
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
31
32
33
|
{ stdenv, lib, go, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
let
version = "0.3.0";
in
stdenv.mkDerivation {
name = "consul-${version}";
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o consul github.com/hashicorp/consul
'';
installPhase = ''
ensureDir $out/bin
cp consul $out/bin
'';
meta = with lib; {
homepage = http://www.consul.io/;
description = "A tool for service discovery, monitoring and configuration";
maintainers = with maintainers; [ cstrahan ];
license = licenses.mpl20 ;
platforms = platforms.unix;
};
}
|