ci/nix: Allow IFD for runtime dependency replacements
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:
1 parent
d5e2b93fd0
commit
fabbb43fbf
8 files changed
+68
-22
No files matched your search
@@ -0,0 +1,13 @@
|
||||
{ lib, pkgs, pkgsFlake }:
|
||||
|
||||
# TODO: Drop the json-c replacement when updating the fork pin to a revision with the json-c fix.
|
||||
# Patch the runtime library separately so existing consumers can be reused.
|
||||
lib.optional ((pkgsFlake.rev or null) == "320600d55ff67365e933b98b339acdeac238eb26") {
|
||||
oldDependency = pkgs.json_c;
|
||||
newDependency = pkgs.json_c.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [ (pkgs.fetchpatch {
|
||||
url = "https://github.com/json-c/json-c/commit/f291fa81c6f21d925ea771a8cca597f5886309cc.patch";
|
||||
hash = "sha256-ZffSw1pfEfOH2ylRpJShdx7sTQR2nmPM/JIj/26UrDM=";
|
||||
}) ];
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user