summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-12-14 22:22:22 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-12-14 22:22:22 -0500
commit9f2092b6a98eaa9af1111753fcd2a1c69030f06c (patch)
tree0c18e47724acb7d7f22a8c5c3b3581c2c56a6bc1 /pkgs/servers
parentbfcc281a2738714a88fc4e0fbaad5055dfebbb44 (diff)
downloadnixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.tar
nixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.tar.gz
nixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.tar.bz2
nixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.tar.lz
nixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.tar.xz
nixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.tar.zst
nixpkgs-9f2092b6a98eaa9af1111753fcd2a1c69030f06c.zip
grafana-loki: fix build on darwin
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/monitoring/loki/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/servers/monitoring/loki/default.nix b/pkgs/servers/monitoring/loki/default.nix
index 12b181a480f..895621d4cba 100644
--- a/pkgs/servers/monitoring/loki/default.nix
+++ b/pkgs/servers/monitoring/loki/default.nix
@@ -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;
   };
 }