{ inputs, pkgs, ... }: # A derivation that references all flake inputs to ensure they get cached let inputsList = pkgs.lib.concatMapStringsSep " " (name: inputs.${name}) (builtins.attrNames inputs); in pkgs.runCommand "flake-inputs" { } '' cat ${builtins.toFile "flake-inputs-list" inputsList} > $out '' // { passthru.hideFromDocs = true; }