mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
substituteAll: deprecate
This commit is contained in:
parent
3bfa33ed99
commit
fe7dba6858
2 changed files with 23 additions and 18 deletions
|
@ -112,6 +112,8 @@
|
|||
|
||||
- All support for 32‐bit Darwin systems has been dropped.
|
||||
|
||||
- `substituteAll` has been deprecated in favor of `replaceVars` and will be removed in the next release.
|
||||
|
||||
- Default ICU version updated from 74 to 76
|
||||
|
||||
- Apache Kafka was updated to `>= 4.0.0`. Please note that this is the first release which operates
|
||||
|
|
|
@ -6,6 +6,8 @@ let
|
|||
isInvalidArgName = x: builtins.match "^[a-z][a-zA-Z0-9_]*$" x == null;
|
||||
invalidArgs = builtins.filter isInvalidArgName (builtins.attrNames args);
|
||||
in
|
||||
# TODO(@wolfgangwalther): Remove substituteAll, the nix function, after 25.05 branch-off.
|
||||
lib.warn "substituteAll is deprecated and will be removed in 25.11. Use replaceVars instead." (
|
||||
if invalidArgs == [ ] then
|
||||
stdenvNoCC.mkDerivation (
|
||||
{
|
||||
|
@ -24,3 +26,4 @@ else
|
|||
- only contain ASCII letters, digits and underscores
|
||||
Found invalid argument names: ${lib.concatStringsSep ", " invalidArgs}.
|
||||
''
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue