Remove the unused scriptFromFile helper
It had no callers; the built system's derivation is unchanged by its removal.
This commit is contained in:
@@ -65,17 +65,11 @@ let
|
|||||||
hostNames = attrNames (filterAttrs (_name: type: type == "directory") (builtins.readDir hostsDir));
|
hostNames = attrNames (filterAttrs (_name: type: type == "directory") (builtins.readDir hostsDir));
|
||||||
in
|
in
|
||||||
genAttrs hostNames (hostName: mkHost { inherit hostName; });
|
genAttrs hostNames (hostName: mkHost { inherit hostName; });
|
||||||
|
|
||||||
# --- Script-from-file helper --------------------------------------------
|
|
||||||
# Turn a standalone script file into a package on PATH, keeping the script
|
|
||||||
# itself editable as a real file rather than an inlined heredoc.
|
|
||||||
scriptFromFile = pkgs: name: path: pkgs.writeShellScriptBin name (builtins.readFile path);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit
|
inherit
|
||||||
collectNixFiles
|
collectNixFiles
|
||||||
mkHost
|
mkHost
|
||||||
mkHosts
|
mkHosts
|
||||||
scriptFromFile
|
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user