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

27 lines
624 B
Nix
Raw Normal View History

2015-08-19 22:23:56 +02:00
{ stdenv, fetchFromGitHub, go }:
stdenv.mkDerivation rec {
name = "logstash-forwarder-${version}";
version = "0.4.0";
src = fetchFromGitHub {
owner = "elasticsearch";
repo = "logstash-forwarder";
rev = "v${version}";
sha256 = "05g7366w8f7h75n1ia7njdpmparr6sfvn45xxfh5412zigqidz6l";
2014-04-10 13:31:23 +02:00
};
2015-08-19 22:23:56 +02:00
buildInputs = [ go ];
2014-04-10 13:31:23 +02:00
installPhase = ''
mkdir -p $out/bin
2015-08-19 22:23:56 +02:00
find . -name logstash-forwarder -type f -exec cp {} $out/bin \;
2014-04-10 13:31:23 +02:00
'';
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
};
}