0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

substitute: Deprecate replacements, introduce replacementsList

Also:
- Add tests
- Treewide update
- Improve docs
This commit is contained in:
Silvan Mosberger 2024-02-09 04:30:09 +01:00 committed by Silvan Mosberger
parent 0151be1b32
commit cd5dc76d83
9 changed files with 160 additions and 12 deletions

View file

@ -52,7 +52,7 @@ in {
# See: https://github.com/NixOS/nixpkgs/issues/213408
pkgs.substitute {
src = "${systemd}/example/sysctl.d/50-coredump.conf";
replacements = [
substitutions = [
"--replace"
"${systemd}"
"${pkgs.symlinkJoin { name = "systemd"; paths = [ systemd ]; }}"