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