nixpkgs/pkgs/servers/fleet/default.nix

38 lines
723 B
Nix
Raw Normal View History

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