nixpkgs/pkgs/servers/monitoring/loki/default.nix

33 lines
812 B
Nix
Raw Normal View History

2019-08-02 15:19:14 -07:00
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, systemd }:
2019-02-28 23:18:57 -08:00
buildGoPackage rec {
2019-12-05 07:37:08 -08:00
version = "1.1.0";
pname = "grafana-loki";
2019-02-28 23:18:57 -08:00
goPackagePath = "github.com/grafana/loki";
doCheck = true;
src = fetchFromGitHub {
rev = "v${version}";
owner = "grafana";
repo = "loki";
2019-12-05 07:37:08 -08:00
sha256 = "1c9bw5bib577pgjd71skncxf3cdcyj1ab36j6ag7szl2kym62j6x";
2019-02-28 23:18:57 -08:00
};
2019-08-02 15:19:14 -07:00
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ systemd.dev ];
preFixup = ''
wrapProgram $bin/bin/promtail \
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
'';
2019-02-28 23:18:57 -08:00
meta = with stdenv.lib; {
description = "Like Prometheus, but for logs";
2019-02-28 23:18:57 -08:00
license = licenses.asl20;
2019-08-02 15:19:14 -07:00
homepage = "https://grafana.com/loki";
maintainers = with maintainers; [ willibutz globin mmahut ];
2019-02-28 23:18:57 -08:00
platforms = platforms.linux;
};
}