diff --git a/pkgs/servers/monitoring/loki/default.nix b/pkgs/by-name/gr/grafana-loki/package.nix similarity index 64% rename from pkgs/servers/monitoring/loki/default.nix rename to pkgs/by-name/gr/grafana-loki/package.nix index d5434daeef38..a5f68648c243 100644 --- a/pkgs/servers/monitoring/loki/default.nix +++ b/pkgs/by-name/gr/grafana-loki/package.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildGoModule -, fetchFromGitHub -, makeWrapper -, nixosTests -, systemd -, testers -, grafana-loki +{ + stdenv, + lib, + buildGoModule, + fetchFromGitHub, + makeWrapper, + nixosTests, + systemd, + testers, + grafana-loki, }: buildGoModule rec { @@ -31,7 +32,7 @@ buildGoModule rec { "cmd/lokitool" ]; - tags = ["promtail_journal_enabled"]; + tags = [ "promtail_journal_enabled" ]; nativeBuildInputs = [ makeWrapper ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ systemd.dev ]; @@ -49,22 +50,34 @@ buildGoModule rec { }; }; - ldflags = let t = "github.com/grafana/loki/v3/pkg/util/build"; in [ - "-s" - "-w" - "-X ${t}.Version=${version}" - "-X ${t}.BuildUser=nix@nixpkgs" - "-X ${t}.BuildDate=unknown" - "-X ${t}.Branch=unknown" - "-X ${t}.Revision=unknown" - ]; + ldflags = + let + t = "github.com/grafana/loki/v3/pkg/util/build"; + in + [ + "-s" + "-w" + "-X ${t}.Version=${version}" + "-X ${t}.BuildUser=nix@nixpkgs" + "-X ${t}.BuildDate=unknown" + "-X ${t}.Branch=unknown" + "-X ${t}.Revision=unknown" + ]; meta = with lib; { description = "Like Prometheus, but for logs"; mainProgram = "promtail"; - license = with licenses; [ agpl3Only asl20 ]; + license = with licenses; [ + agpl3Only + asl20 + ]; homepage = "https://grafana.com/oss/loki/"; changelog = "https://github.com/grafana/loki/releases/tag/v${version}"; - maintainers = with maintainers; [ willibutz globin mmahut emilylange ]; + maintainers = with maintainers; [ + willibutz + globin + mmahut + emilylange + ]; }; } diff --git a/pkgs/servers/monitoring/loki/promtail.nix b/pkgs/by-name/pr/promtail/package.nix similarity index 100% rename from pkgs/servers/monitoring/loki/promtail.nix rename to pkgs/by-name/pr/promtail/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 84e92b4eab81..f9d8d3139c04 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11261,9 +11261,6 @@ with pkgs; grafana = callPackage ../servers/monitoring/grafana { }; grafanaPlugins = callPackages ../servers/monitoring/grafana/plugins { }; - grafana-loki = callPackage ../servers/monitoring/loki { }; - promtail = callPackage ../servers/monitoring/loki/promtail.nix { }; - hasura-graphql-engine = haskell.lib.compose.justStaticExecutables haskell.packages.ghc810.graphql-engine; hasura-cli = callPackage ../servers/hasura/cli.nix { };