nixpkgs/pkgs/tools/misc/logstash-forwarder/default.nix

21 lines
590 B
Nix
Raw Normal View History

{ stdenv, fetchgit, go }:
2014-04-10 13:31:23 +02:00
stdenv.mkDerivation {
name = "logstash-forwarder-20141216";
2014-04-10 13:31:23 +02:00
src = fetchgit {
url = https://github.com/elasticsearch/logstash-forwarder.git;
rev = "6082bd8aaecb2180f5b56f4fb1b2940a6935ef7b";
sha256 = "1686rlx5p7d2806cg8y4376m4l7nvg1yjgg52ccrs0v4fnqs6292";
2014-04-10 13:31:23 +02:00
};
buildInputs = [ go ];
2014-04-10 13:31:23 +02:00
installPhase = ''
mkdir -p $out/bin
cp build/bin/logstash-forwarder $out/bin
'';
meta = {
license = stdenv.lib.licenses.asl20;
homepage = https://github.com/elasticsearch/logstash-forwarder;
platforms = stdenv.lib.platforms.unix;
2014-04-10 13:31:23 +02:00
};
}