summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/broken/logstash-input-github/default.nix
blob: 3e664e18896b2feca905c043c752333a86fdac6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ 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 ];
  };
}