diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-08-24 18:49:13 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-08-24 18:49:13 -0600 |
| commit | a2fd86d4828870cc030282b419982c6bcce3ac90 (patch) | |
| tree | 48ccd3c62293b741e1eefa98e111193740e87749 /doctrine/lib/mk-module.nix | |
| parent | 53a923158861a9c52b86f37d826c3f4637476dfa (diff) | |
trivionomicon/doctrine: add support for overriding the prefix
Diffstat (limited to '')
| -rw-r--r-- | doctrine/lib/mk-module.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doctrine/lib/mk-module.nix b/doctrine/lib/mk-module.nix index f76ccfe..ffbe6bc 100644 --- a/doctrine/lib/mk-module.nix +++ b/doctrine/lib/mk-module.nix @@ -11,14 +11,17 @@ requires ? [], prefix ? doctrine.prefix, namespace ? doctrine.namespace, + passthru ? {}, }: let - optionsSet = import options { - inherit config lib pkgs cfg name doctrine; - }; + optionsSet = import options (passthru + // { + inherit config lib pkgs cfg name doctrine; + }); - configSet = import configFiles.${namespace} { - inherit config lib pkgs doctrine cfg; - }; + configSet = import configFiles.${namespace} (passthru + // { + inherit config lib pkgs doctrine cfg; + }); configFiles = lib.filterAttrs (k: v: v != null) { inherit sys hm; |
