fix(cache): attempt to fix build failure of hass
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
3d5bbf4302
commit
73c4b09b9a
1 changed files with 27 additions and 14 deletions
|
@ -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 {
|
||||
path = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
bash
|
||||
git
|
||||
openssh
|
||||
;
|
||||
});
|
||||
|
||||
inherit (config.nix) package;
|
||||
|
||||
inherit nix-fast-build-pkg;
|
||||
};
|
||||
|
||||
script = ''
|
||||
cd /tmp
|
||||
|
|
Loading…
Reference in a new issue