mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +00:00
4bfbc45869
Add a top-level dbt application with a passthru function that should be used to extend it with adapters.
19 lines
368 B
Nix
19 lines
368 B
Nix
{ python3
|
|
, dbt-bigquery
|
|
, dbt-core
|
|
, dbt-postgres
|
|
, dbt-redshift
|
|
, dbt-snowflake
|
|
}:
|
|
let
|
|
adapters = {
|
|
inherit dbt-bigquery dbt-postgres dbt-redshift dbt-snowflake;
|
|
};
|
|
in
|
|
adapterFun: (python3.buildEnv.override {
|
|
extraLibs = [ dbt-core ] ++ (adapterFun adapters);
|
|
ignoreCollisions = true;
|
|
}).overrideAttrs {
|
|
meta.mainProgram = dbt-core.meta.mainProgram;
|
|
}
|