2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
callPackages,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
# If you are reading this, you can test these writers by running: nix-build . -A tests.writers
|
|
|
|
let
|
2024-06-30 08:16:52 +00:00
|
|
|
aliases = if config.allowAliases then (import ./aliases.nix lib) else prev: { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
# Writers for JSON-like data structures
|
|
|
|
dataWriters = callPackages ./data.nix { };
|
|
|
|
|
|
|
|
# Writers for scripts
|
|
|
|
scriptWriters = callPackages ./scripts.nix { };
|
|
|
|
|
|
|
|
writers = scriptWriters // dataWriters;
|
|
|
|
in
|
|
|
|
writers // (aliases writers)
|