serfdom: Migrate to go-packages

This commit is contained in:
William A. Kennington III 2015-09-02 17:51:03 -07:00
parent 8f34c44824
commit 5f35b0f7da
3 changed files with 6 additions and 39 deletions

View file

@ -1,28 +0,0 @@
{ lib, goPackages, fetchFromGitHub }:
with goPackages;
buildGoPackage rec {
version = "0.6.4";
name = "serfdom-${version}";
goPackagePath = "github.com/hashicorp/serf";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "serf";
rev = "v${version}";
sha256 = "1fhz8wrvsmgaky22n255w9hkyfph2n45c47ivdyzrrxisg5j2438";
};
buildInputs = [ cli mapstructure memberlist_v2 logutils go-syslog mdns columnize circbuf ugorji.go ];
dontInstallSrc = true;
meta = with 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;
};
}

View file

@ -9328,7 +9328,7 @@ let
shairport-sync = callPackage ../servers/shairport-sync { };
serfdom = callPackage ../servers/serfdom { };
serfdom = pkgs.goPackages.serf.bin // { outputs = [ "bin" ]; };
seyren = callPackage ../servers/monitoring/seyren { };

View file

@ -2489,17 +2489,12 @@ let
buildInputs = [ armon.go-metrics net-rpc-msgpackrpc yamux ];
};
serf = buildGoPackage rec {
serf = buildFromGitHub {
rev = "668982d8f90f5eff4a766583c1286393c1d27f68";
name = "serf-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "github.com/hashicorp/serf";
src = fetchFromGitHub {
inherit rev;
owner = "hashicorp";
repo = "serf";
sha256 = "1h05h5xhaj27r1mh5zshnykax29lqjhfc0bx4v9swiwb873c24qk";
};
date = "2015-05-15";
owner = "hashicorp";
repo = "serf";
sha256 = "1h05h5xhaj27r1mh5zshnykax29lqjhfc0bx4v9swiwb873c24qk";
buildInputs = [
circbuf armon.go-metrics ugorji.go go-syslog logutils mdns memberlist