1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 07:34:36 +00:00
nixpkgs/pkgs/tools/misc/logstash-forwarder/default.nix
2015-08-19 13:25:44 -07:00

27 lines
624 B
Nix

{ 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 ];
installPhase = ''
mkdir -p $out/bin
find . -name logstash-forwarder -type f -exec cp {} $out/bin \;
'';
meta = {
license = stdenv.lib.licenses.asl20;
homepage = https://github.com/elasticsearch/logstash-forwarder;
platforms = stdenv.lib.platforms.unix;
};
}