Refactor: Pass 'final' only to packages that need it (fwildclusterboot)

Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-19 05:49:50 +00:00
commit 789df109ed
5 changed files with 13 additions and 12 deletions

View file

@ -9,21 +9,26 @@ let
# Reference to the versions directory at the repo root # Reference to the versions directory at the repo root
versionsDir = ../versions; versionsDir = ../versions;
# Common arguments passed to all package modules # Common arguments passed to package modules that don't need 'final'
commonArgs = { baseArgs = {
inherit final prev fetchfromGitHubJSONFile versionsDir; inherit prev fetchfromGitHubJSONFile versionsDir;
};
# Arguments for packages that need access to 'final' (for cross-package dependencies)
argsWithFinal = baseArgs // {
inherit final;
}; };
in { in {
## F ## F
fwildclusterboot = import ./f/fwildclusterboot.nix commonArgs; fwildclusterboot = import ./f/fwildclusterboot.nix argsWithFinal;
## H ## H
httpgd = import ./h/httpgd.nix commonArgs; httpgd = import ./h/httpgd.nix baseArgs;
## M ## M
musicMetadata = import ./m/musicMetadata.nix commonArgs; musicMetadata = import ./m/musicMetadata.nix baseArgs;
## S ## S
summclust = import ./s/summclust.nix commonArgs; summclust = import ./s/summclust.nix baseArgs;
synthdid = import ./s/synthdid.nix commonArgs; synthdid = import ./s/synthdid.nix baseArgs;
} }

View file

@ -1,5 +1,4 @@
{ {
final,
prev, prev,
fetchfromGitHubJSONFile, fetchfromGitHubJSONFile,
versionsDir, versionsDir,

View file

@ -1,5 +1,4 @@
{ {
final,
prev, prev,
fetchfromGitHubJSONFile, fetchfromGitHubJSONFile,
versionsDir, versionsDir,

View file

@ -1,5 +1,4 @@
{ {
final,
prev, prev,
fetchfromGitHubJSONFile, fetchfromGitHubJSONFile,
versionsDir, versionsDir,

View file

@ -1,5 +1,4 @@
{ {
final,
prev, prev,
fetchfromGitHubJSONFile, fetchfromGitHubJSONFile,
versionsDir, versionsDir,