From 303526d8c0e7d16e282a711f2b411f6817c29a70 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 3 Mar 2024 12:14:45 +0100 Subject: [PATCH] grafana: explicitly declare subPackages The build itself is pretty quick now: buildPhase completed in 2 minutes 46 seconds in contrast to buildPhase completed in 5 minutes 22 seconds before on the same machine (Hetzner AX41 NVMe with AMD Ryzen 5 3600 6-Core Processor and 64GiB RAM). Downside of that is that no tests are now executed, but I'm inclined to make that sacrifice for now. Especially considering that a fix for that is on the horizon with #284568. (cherry picked from commit f220ea45d2ea0ccde5d7ba409566d571252fa25f) --- pkgs/servers/monitoring/grafana/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/grafana/default.nix b/pkgs/servers/monitoring/grafana/default.nix index e8802a82cdd7929..fa0b70070ef76bd 100644 --- a/pkgs/servers/monitoring/grafana/default.nix +++ b/pkgs/servers/monitoring/grafana/default.nix @@ -34,7 +34,7 @@ buildGoModule rec { pname = "grafana"; version = "10.3.3"; - excludedPackages = [ "alert_webhook_listener" "clean-swagger" "release_publisher" "slow_proxy" "slow_proxy_mac" "macaron" "devenv" "modowners" ]; + subPackages = [ "pkg/cmd/grafana" "pkg/cmd/grafana-server" "pkg/cmd/grafana-cli" ]; src = fetchFromGitHub { owner = "grafana";