summaryrefslogtreecommitdiff
path: root/pkgs/build-support/replace-direct-dependencies.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* replaceDependencies: fix with ca-derivations•••Broken in 7a07cc0da9787e936a6b4099c1109906088d3868 since that changed isStorePath to return true for content-addressed paths. Andrew Marshall2025-06-101-2/+12
* replaceDependencies: add support for ca-derivations•••Unlike regular input-addressed or fixed-output derivations, floating and deferred derivations do not have their store path available at evaluation time, so their outPath is a placeholder. The following changes are needed for replaceDependencies to continue working: * Detect the placeholder and retrieve the store path using another IFD hack when collecting the rewrite plan. * Try to obtain the derivation name needed for replaceDirectDependencies from the derivation arguments if a placeholder is detected. * Move the length mismatch detection to build time, since the placeholder has a fixed length which is unrelated to the store path. Alois Wohlschlager2024-09-241-13/+60
* replaceDirectDependencies: split off from replaceDependencies•••This allows both swapping out and reusing the rewrite machinery. Alois Wohlschlager2024-09-241-0/+25