substituteAllFiles: deprecate

This commit is contained in:
Wolfgang Walther 2025-04-05 14:39:42 +02:00
parent fe7dba6858
commit ac825aaea5
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1
2 changed files with 26 additions and 21 deletions

View file

@ -112,7 +112,7 @@
- All support for 32bit Darwin systems has been dropped.
- `substituteAll` has been deprecated in favor of `replaceVars` and will be removed in the next release.
- `substituteAll` and `substituteAllFiles` have been deprecated in favor of `replaceVars` and will be removed in the next release.
- Default ICU version updated from 74 to 76

View file

@ -2,6 +2,10 @@
args:
# TODO(@wolfgangwalther): Remove substituteAllFiles after 25.05 branch-off.
lib.warn
"substituteAllFiles is deprecated and will be removed in 25.11. Use replaceVars for each file instead."
(
stdenv.mkDerivation (
{
name = if args ? name then args.name else baseNameOf (toString args.src);
@ -26,3 +30,4 @@ stdenv.mkDerivation (
}
// args
)
)