ci/nix: Allow IFD for runtime dependency replacements
Update docs / update (push) Successful in 1m5s
CI / Check, build and cache nixfiles (push) Failing after 1h2m10s

Share a single replacement list between NixOS and standalone Home
Manager. CI checks that list against its targets' nixpkgs channels.

When a replacement applies, warn and defer the flake check until
after the target builds. Runtime replacement needs to generate and
import store reference graphs during evaluation, which fails under
`nix flake check --no-build` on a fresh runner.

Keep the early eval-only check and disable IFD when the list is empty.
This commit is contained in:
jackos1998 committed 2026-11-23 23:45:23 +00:00
1 parent d5e2b93fd0
commit fabbb43fbf
8 files changed
+68 -22

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@ let
inherit (lib) mkIf mkDefault mkMerge optionalAttrs versionOlder;
inherit (lib.my) mkDefault';
jsonCRuntimeReplacements = import ../../lib/json-c-runtime.nix { inherit lib pkgs pkgsFlake; };
runtimeDependencyReplacements = import ../../lib/runtime-dependency-replacements.nix { inherit lib pkgs pkgsFlake; };
in
{
options = with lib.types; {
@@ -20,8 +20,8 @@ in
];
config = mkMerge [
(optionalAttrs (jsonCRuntimeReplacements != [ ]) {
system.replaceDependencies.replacements = jsonCRuntimeReplacements;
(optionalAttrs (runtimeDependencyReplacements != [ ]) {
system.replaceDependencies.replacements = runtimeDependencyReplacements;
})
{