Merge pull request #65821 from WilliButz/update-loki

grafana-loki: 0.1.0 -> 0.2.0
This commit is contained in:
Maximilian Bosch 2019-08-03 01:19:02 +02:00 committed by GitHub
commit 0d0705b163
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, systemd }:
buildGoPackage rec {
version = "0.1.0";
version = "0.2.0";
name = "grafana-loki-${version}";
goPackagePath = "github.com/grafana/loki";
@ -11,13 +11,21 @@ buildGoPackage rec {
rev = "v${version}";
owner = "grafana";
repo = "loki";
sha256 = "18iysr8p84vd1sdjdnpc9cydd5rpw0azdjzpz8yjqhscqw9gk4w2";
sha256 = "1f4g5qiarhsa1r7vdx1z30zpqlypd4cf5anj4jp6nc9q6zmjwk91";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ systemd.dev ];
preFixup = ''
wrapProgram $bin/bin/promtail \
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
'';
meta = with stdenv.lib; {
description = "Like Prometheus, but for logs.";
license = licenses.asl20;
homepage = https://grafana.com/loki;
homepage = "https://grafana.com/loki";
maintainers = with maintainers; [ willibutz ];
platforms = platforms.linux;
};