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/default.nix | |
| parent | 53a923158861a9c52b86f37d826c3f4637476dfa (diff) | |
trivionomicon/doctrine: add support for overriding the prefix
Diffstat (limited to 'doctrine/default.nix')
| -rw-r--r-- | doctrine/default.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/doctrine/default.nix b/doctrine/default.nix index b4c72b8..0d50d49 100644 --- a/doctrine/default.nix +++ b/doctrine/default.nix @@ -1,12 +1,16 @@ { + lib ? pkgs.lib, pkgs, - namespace, + prefix ? "trivium", + namespace ? null, }: let - doctrine = { - lib = import ./lib {inherit lib pkgs doctrine;}; - prefix = "trivium"; - inherit namespace; - }; - inherit (pkgs) lib; + doctrine = + { + lib = import ./lib {inherit lib pkgs doctrine;}; + inherit namespace prefix; + } + // lib.optionalAttrs (pkgs != null) { + inherit pkgs; + }; in doctrine |
