treewide: substituteAll -> replaceVars/substitute
substituteAll is now officially deprecated.
This commit is contained in:
parent
d31710fb2c
commit
abfad3d295
12 changed files with 56 additions and 43 deletions
|
|
@ -11,12 +11,16 @@ let
|
|||
|
||||
substituteExpected =
|
||||
path:
|
||||
pkgs.substituteAll {
|
||||
pkgs.substitute {
|
||||
src = path;
|
||||
git_include_path = pkgs.writeText "hm_gitconfig" (builtins.readFile ./git-expected-include.conf);
|
||||
git_named_include_path = pkgs.writeText "hm_gitconfigwork" (
|
||||
builtins.readFile ./git-expected-include.conf
|
||||
);
|
||||
substitutions = [
|
||||
"--replace"
|
||||
"@git_include_path@"
|
||||
(pkgs.writeText "hm_gitconfig" (builtins.readFile ./git-expected-include.conf))
|
||||
"--replace"
|
||||
"@git_named_include_path@"
|
||||
(pkgs.writeText "hm_gitconfigwork" (builtins.readFile ./git-expected-include.conf))
|
||||
];
|
||||
};
|
||||
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue