Merge pull request #75679 from marsam/fix-loki-darwin
grafana-loki: fix build on darwin
This commit is contained in:
commit
7eaaf728e4
@ -15,9 +15,9 @@ buildGoPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ systemd.dev ];
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ systemd.dev ];
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
wrapProgram $bin/bin/promtail \
|
wrapProgram $bin/bin/promtail \
|
||||||
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
|
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
|
||||||
'';
|
'';
|
||||||
@ -25,8 +25,8 @@ buildGoPackage rec {
|
|||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Like Prometheus, but for logs";
|
description = "Like Prometheus, but for logs";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
homepage = "https://grafana.com/loki";
|
homepage = "https://grafana.com/oss/loki/";
|
||||||
maintainers = with maintainers; [ willibutz globin mmahut ];
|
maintainers = with maintainers; [ willibutz globin mmahut ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user