logstash-forwarder: 20141216 -> 0.4.0

This commit is contained in:
William A. Kennington III 2015-08-19 13:23:56 -07:00
parent 082b0ee2a1
commit 88b1d7e5d9

View File

@ -1,15 +1,21 @@
{ stdenv, fetchgit, go_1_3 }:
stdenv.mkDerivation {
name = "logstash-forwarder-20141216";
src = fetchgit {
url = https://github.com/elasticsearch/logstash-forwarder.git;
rev = "6082bd8aaecb2180f5b56f4fb1b2940a6935ef7b";
sha256 = "1686rlx5p7d2806cg8y4376m4l7nvg1yjgg52ccrs0v4fnqs6292";
{ 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";
};
buildInputs = [ go_1_3 ];
buildInputs = [ go ];
installPhase = ''
mkdir -p $out/bin
cp build/bin/logstash-forwarder $out/bin
find . -name logstash-forwarder -type f -exec cp {} $out/bin \;
'';
meta = {