2023-07-27 01:57:49 +00:00
|
|
|
{ config, lib, callPackages }:
|
2018-10-27 17:05:26 +00:00
|
|
|
|
2024-01-15 14:48:50 +00:00
|
|
|
# If you are reading this, you can test these writers by running: nix-build . -A tests.writers
|
2021-12-10 21:03:06 +00:00
|
|
|
let
|
2022-04-01 09:33:10 +00:00
|
|
|
aliases = if config.allowAliases then (import ./aliases.nix lib) else prev: {};
|
2021-12-10 21:03:06 +00:00
|
|
|
|
2023-07-22 09:14:51 +00:00
|
|
|
# Writers for JSON-like data structures
|
2023-07-27 01:57:49 +00:00
|
|
|
dataWriters = callPackages ./data.nix { };
|
2018-10-27 17:05:26 +00:00
|
|
|
|
2023-07-22 09:14:51 +00:00
|
|
|
# Writers for scripts
|
2023-07-27 01:57:49 +00:00
|
|
|
scriptWriters = callPackages ./scripts.nix { };
|
2023-07-22 09:14:51 +00:00
|
|
|
|
|
|
|
writers = scriptWriters // dataWriters;
|
2021-12-10 21:03:06 +00:00
|
|
|
in
|
|
|
|
writers // (aliases writers)
|