2023-08-04 22:07:22 +00:00
|
|
|
{ config, lib, callPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
let
|
2022-04-15 01:41:22 +00:00
|
|
|
aliases = if config.allowAliases then (import ./aliases.nix lib) else prev: {};
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# Writers for JSON-like data structures
|
|
|
|
dataWriters = callPackages ./data.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# Writers for scripts
|
|
|
|
scriptWriters = callPackages ./scripts.nix { };
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
writers = scriptWriters // dataWriters;
|
2021-12-19 01:06:50 +00:00
|
|
|
in
|
|
|
|
writers // (aliases writers)
|