mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
31 lines
783 B
Nix
31 lines
783 B
Nix
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.6.2";
|
|
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 = ''
|
|
ensureDir $out/bin
|
|
mv serf $out/bin/serf
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Serf is 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;
|
|
};
|
|
}
|