mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
09dd973987
Use callPackages instead of plain import to get proper splicing. Without this, writeNginxConfig fails when cross-compiling.
15 lines
356 B
Nix
15 lines
356 B
Nix
{ config, lib, callPackages }:
|
|
|
|
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)
|