2014-12-07 13:00:29 +00:00
|
|
|
{ stdenv, lib, go, fetchFromGitHub }:
|
2014-06-23 09:20:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fleet-${version}";
|
2014-12-07 13:00:29 +00:00
|
|
|
version = "0.9.0";
|
2014-06-23 09:20:41 +00:00
|
|
|
|
2014-12-07 13:00:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "fleet";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0gjminfprprs1nmg9y9a0qkyl9spixrk4pc2b7bl0lxdgpq2yiid";
|
2014-06-23 09:20:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2014-12-07 13:00:29 +00:00
|
|
|
patchShebangs build
|
|
|
|
./build
|
2014-06-23 09:20:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-12-07 13:00:29 +00:00
|
|
|
mkdir -p $out
|
|
|
|
mv bin $out
|
2014-06-23 09:20:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A distributed init system";
|
|
|
|
homepage = http://coreos.com/using-coreos/clustering/;
|
|
|
|
license = licenses.asl20;
|
2014-12-07 13:00:29 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan offline ];
|
2014-06-23 09:20:41 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|