mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
33 lines
693 B
Nix
33 lines
693 B
Nix
{ stdenv, lib, go, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fleet-${version}";
|
|
version = "0.11.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coreos";
|
|
repo = "fleet";
|
|
rev = "v${version}";
|
|
sha256 = "0dc95dpqqc2rclbvgdqjcilrkji7lrpigdrzpwm3nbgz58vkfnz3";
|
|
};
|
|
|
|
buildInputs = [ go ];
|
|
|
|
buildPhase = ''
|
|
patchShebangs build
|
|
./build
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
mv bin $out
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A distributed init system";
|
|
homepage = http://coreos.com/using-coreos/clustering/;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ cstrahan offline ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|