2014-12-07 14:00:29 +01:00
|
|
|
{ stdenv, lib, go, fetchFromGitHub }:
|
2014-06-23 11:20:41 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fleet-${version}";
|
2018-02-26 06:27:56 +01:00
|
|
|
version = "1.0.0";
|
2014-06-23 11:20:41 +02:00
|
|
|
|
2014-12-07 14:00:29 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coreos";
|
|
|
|
repo = "fleet";
|
|
|
|
rev = "v${version}";
|
2018-02-26 06:27:56 +01:00
|
|
|
sha256 = "0j48ajz19aqfzv9iyznnn39aw51y1nqcl270grmvi5cbqycmrfm0";
|
2014-06-23 11:20:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2015-01-08 10:26:49 +01:00
|
|
|
patchShebangs build
|
2014-12-07 14:00:29 +01:00
|
|
|
./build
|
2014-06-23 11:20:41 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-12-07 14:00:29 +01:00
|
|
|
mkdir -p $out
|
|
|
|
mv bin $out
|
2014-06-23 11:20:41 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A distributed init system";
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://coreos.com/using-coreos/clustering/;
|
2014-06-23 11:20:41 +02:00
|
|
|
license = licenses.asl20;
|
2016-10-19 12:00:15 +02:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
cstrahan
|
|
|
|
jgeerds
|
|
|
|
offline
|
|
|
|
];
|
2014-06-23 11:20:41 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|