mirror of
https://github.com/dwinkler1/fran.git
synced 2026-02-19 22:50:59 -05:00
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:
parent
5831d95ce6
commit
789df109ed
5 changed files with 13 additions and 12 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
final,
|
|
||||||
prev,
|
prev,
|
||||||
fetchfromGitHubJSONFile,
|
fetchfromGitHubJSONFile,
|
||||||
versionsDir,
|
versionsDir,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
final,
|
|
||||||
prev,
|
prev,
|
||||||
fetchfromGitHubJSONFile,
|
fetchfromGitHubJSONFile,
|
||||||
versionsDir,
|
versionsDir,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
final,
|
|
||||||
prev,
|
prev,
|
||||||
fetchfromGitHubJSONFile,
|
fetchfromGitHubJSONFile,
|
||||||
versionsDir,
|
versionsDir,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
final,
|
|
||||||
prev,
|
prev,
|
||||||
fetchfromGitHubJSONFile,
|
fetchfromGitHubJSONFile,
|
||||||
versionsDir,
|
versionsDir,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue