nixpkgs/pkgs/servers/serfdom/default.nix

31 lines
783 B
Nix
Raw Normal View History

2014-06-23 10:42:37 +02:00
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
2014-02-27 19:11:08 +01:00
2014-06-23 10:42:37 +02:00
stdenv.mkDerivation rec {
version = "0.6.2";
name = "serfdom-${version}";
2014-02-27 19:11:08 +01:00
2014-06-23 10:42:37 +02:00
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
2014-02-27 19:11:08 +01:00
2014-06-23 10:42:37 +02:00
buildInputs = [ go ];
2014-02-27 19:11:08 +01:00
2014-06-23 10:42:37 +02:00
buildPhase = ''
export GOPATH=$src
go build -v -o serf github.com/hashicorp/serf
'';
2014-02-27 19:11:08 +01:00
2014-06-23 10:42:37 +02:00
installPhase = ''
ensureDir $out/bin
mv serf $out/bin/serf
'';
2014-02-27 19:11:08 +01:00
2014-06-23 10:42:37 +02:00
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;
};
}