1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/servers/fleet/default.nix

34 lines
693 B
Nix
Raw Normal View History

2014-12-07 13:00:29 +00:00
{ stdenv, lib, go, fetchFromGitHub }:
2014-06-23 10:20:41 +01:00
stdenv.mkDerivation rec {
name = "fleet-${version}";
2015-10-04 05:41:29 +01:00
version = "0.11.5";
2014-06-23 10:20:41 +01:00
2014-12-07 13:00:29 +00:00
src = fetchFromGitHub {
owner = "coreos";
repo = "fleet";
rev = "v${version}";
2015-10-04 05:41:29 +01:00
sha256 = "0dc95dpqqc2rclbvgdqjcilrkji7lrpigdrzpwm3nbgz58vkfnz3";
2014-06-23 10:20:41 +01:00
};
buildInputs = [ go ];
buildPhase = ''
patchShebangs build
2014-12-07 13:00:29 +00:00
./build
2014-06-23 10:20:41 +01:00
'';
installPhase = ''
2014-12-07 13:00:29 +00:00
mkdir -p $out
mv bin $out
2014-06-23 10:20:41 +01: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 10:20:41 +01:00
platforms = platforms.unix;
};
}