various: replace substituteAll with replaceVarsWith
This covers cases which need to use replaceVarsWith because the use isExecutable = true.
This commit is contained in:
@@ -9,16 +9,18 @@ with lib;
|
||||
|
||||
let
|
||||
|
||||
initScriptBuilder = pkgs.substituteAll {
|
||||
initScriptBuilder = pkgs.replaceVarsWith {
|
||||
src = ./init-script-builder.sh;
|
||||
isExecutable = true;
|
||||
inherit (pkgs) bash;
|
||||
inherit (config.system.nixos) distroName;
|
||||
path = [
|
||||
pkgs.coreutils
|
||||
pkgs.gnused
|
||||
pkgs.gnugrep
|
||||
];
|
||||
replacements = {
|
||||
inherit (pkgs) bash;
|
||||
inherit (config.system.nixos) distroName;
|
||||
path = lib.makeBinPath [
|
||||
pkgs.coreutils
|
||||
pkgs.gnused
|
||||
pkgs.gnugrep
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user