1{ stdenv, lib, go, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "fleet-${version}";
5 version = "0.11.5";
6
7 src = fetchFromGitHub {
8 owner = "coreos";
9 repo = "fleet";
10 rev = "v${version}";
11 sha256 = "0dc95dpqqc2rclbvgdqjcilrkji7lrpigdrzpwm3nbgz58vkfnz3";
12 };
13
14 buildInputs = [ go ];
15
16 buildPhase = ''
17 patchShebangs build
18 ./build
19 '';
20
21 installPhase = ''
22 mkdir -p $out
23 mv bin $out
24 '';
25
26 meta = with stdenv.lib; {
27 description = "A distributed init system";
28 homepage = http://coreos.com/using-coreos/clustering/;
29 license = licenses.asl20;
30 maintainers = with maintainers; [ cstrahan offline ];
31 platforms = platforms.unix;
32 };
33}