Refactor packages into modular structure under packages/ directory

Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-19 05:06:39 +00:00
commit c365b44ff2
7 changed files with 116 additions and 75 deletions

29
packages/default.nix Normal file
View file

@ -0,0 +1,29 @@
{
final,
prev,
}:
let
# Shared helper function to fetch from GitHub using JSON version files
fetchfromGitHubJSONFile = path: prev.fetchFromGitHub (builtins.fromJSON (builtins.readFile path));
# Reference to the versions directory at the repo root
versionsDir = ../versions;
# Common arguments passed to all package modules
commonArgs = {
inherit final prev fetchfromGitHubJSONFile versionsDir;
};
in {
## F
fwildclusterboot = import ./f/fwildclusterboot.nix commonArgs;
## H
httpgd = import ./h/httpgd.nix commonArgs;
## M
musicMetadata = import ./m/musicMetadata.nix commonArgs;
## S
summclust = import ./s/summclust.nix commonArgs;
synthdid = import ./s/synthdid.nix commonArgs;
}