From 73c4b09b9a05930b0626a2de43722336d8a284c3 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 5 Dec 2024 13:06:45 -0500 Subject: [PATCH] fix(cache): attempt to fix build failure of hass --- devices/servivi/modules/binary-cache.nix | 41 ++++++++++++++++-------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/devices/servivi/modules/binary-cache.nix b/devices/servivi/modules/binary-cache.nix index 62be4929..49570294 100644 --- a/devices/servivi/modules/binary-cache.nix +++ b/devices/servivi/modules/binary-cache.nix @@ -19,10 +19,24 @@ nixFastBuild = pkgs.writeShellApplication { name = "nixFastBuild"; - runtimeInputs = with pkgs; [gnugrep nix-fast-build-pkg]; + + runtimeInputs = builtins.attrValues { + inherit + (pkgs) + gnugrep + nix-output-monitor + ; + + inherit nix-fast-build-pkg; + }; + text = '' cd "$FLAKE" || return + # Home-assistant sometimes fails some tests when built with everything else + nom build --no-link \ + .#nixosConfigurations.homie.config.services.home-assistant.package + nix-fast-build -f .#nixFastChecks "$@" mkdir -p results @@ -46,19 +60,18 @@ in { Group = config.users.users.${mainUser}.group; }; - path = - [ - nix-fast-build-pkg - config.nix.package - ] - ++ (builtins.attrValues { - inherit - (pkgs) - bash - git - openssh - ; - }); + path = builtins.attrValues { + inherit + (pkgs) + bash + git + openssh + ; + + inherit (config.nix) package; + + inherit nix-fast-build-pkg; + }; script = '' cd /tmp