nixpkgs/pkgs/servers/fleet/default.nix

31 lines
701 B
Nix
Raw Normal View History

2014-06-23 10:20:41 +01:00
{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "0.5.0";
name = "fleet-${version}";
src = import ./deps.nix {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o fleet github.com/coreos/fleet
'';
installPhase = ''
2014-07-22 10:01:32 +01:00
mkdir -p $out/bin
2014-06-23 10:20:41 +01:00
mv fleet $out/bin
'';
meta = with stdenv.lib; {
description = "A distributed init system";
homepage = http://coreos.com/using-coreos/clustering/;
license = licenses.asl20;
maintainers = with maintainers; [ cstrahan ];
platforms = platforms.unix;
};
}