{ pkgs, stdenv, lib, fetchFromGitHub }: # TODO: requires ftw ruby package stdenv.mkDerivation rec { name = "logstash-input-github-${version}"; version = "3.0.2"; src = fetchFromGitHub { owner = "logstash-plugins"; repo = "logstash-input-github"; rev = "v${version}"; sha256 = "0xc7dicfkqq10w687xyb37qpjmkzxi2n64d16h059b0irh8sychx"; }; dontBuild = true; dontPatchELF = true; dontStrip = true; dontPatchShebangs = true; propagatedBuildInputs = [ pkgs.rubyPackages.ftw ]; installPhase = '' mkdir -p $out/logstash cp -r lib/* $out ''; meta = with lib; { description = "logstash github plugin"; homepage = https://github.com/logstash-plugins/logstash-input-github; license = stdenv.lib.licenses.asl20; platforms = stdenv.lib.platforms.unix; maintainers = with maintainers; [ makefu ]; }; }