60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
15 lines
451 B
Nix
15 lines
451 B
Nix
{ config, lib, callPackages }:
|
|
|
|
# If you are reading this, you can test these writers by running: nix-build . -A tests.writers
|
|
let
|
|
aliases = if config.allowAliases then (import ./aliases.nix lib) else prev: {};
|
|
|
|
# Writers for JSON-like data structures
|
|
dataWriters = callPackages ./data.nix { };
|
|
|
|
# Writers for scripts
|
|
scriptWriters = callPackages ./scripts.nix { };
|
|
|
|
writers = scriptWriters // dataWriters;
|
|
in
|
|
writers // (aliases writers)
|