Merge pull request #75679 from marsam/fix-loki-darwin

grafana-loki: fix build on darwin
This commit is contained in:
WilliButz 2019-12-15 16:16:50 +01:00 committed by GitHub
commit 7eaaf728e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,9 @@ buildGoPackage rec {
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ systemd.dev ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ systemd.dev ];
preFixup = ''
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
wrapProgram $bin/bin/promtail \
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
'';
@ -25,8 +25,8 @@ buildGoPackage rec {
meta = with stdenv.lib; {
description = "Like Prometheus, but for logs";
license = licenses.asl20;
homepage = "https://grafana.com/loki";
homepage = "https://grafana.com/oss/loki/";
maintainers = with maintainers; [ willibutz globin mmahut ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}