trivionomicon/doctrine: add support for overriding the prefix

This commit is contained in:
Alejandro Soto 2025-08-24 18:49:13 -06:00
parent c651b8c470
commit 7daa3d91b3
3 changed files with 28 additions and 18 deletions

View file

@ -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