ensure sqlite3 is always bundled with the plugin

This commit is contained in:
Jeremy Wall 2022-04-06 09:03:51 -04:00
parent 9b4b67fa3a
commit 9d77b1220f
2 changed files with 15 additions and 11 deletions

View File

@ -40,7 +40,7 @@
core = pkgs.mkShell { packages = [ dbt-core ]; }; core = pkgs.mkShell { packages = [ dbt-core ]; };
postgres = pkgs.mkShell { packages = [dbt-core dbt-postgres ]; }; postgres = pkgs.mkShell { packages = [dbt-core dbt-postgres ]; };
redshift = pkgs.mkShell { packages = [dbt-core dbt-redshift ]; }; redshift = pkgs.mkShell { packages = [dbt-core dbt-redshift ]; };
sqlite = pkgs.mkShell { packages = [dbt-core dbt-sqlite pkgs.sqlite ]; }; sqlite = pkgs.mkShell { packages = [dbt-core dbt-sqlite ]; };
}; };
}); });
} }

View File

@ -1,8 +1,8 @@
{pkgs, dbt-core, ...}: {pkgs, dbt-core, ...}:
with pkgs; with pkgs;
with python39Packages; with python39Packages;
let
buildPythonPackage rec { dbt-sqlite = buildPythonPackage rec {
pname = "dbt-sqlite"; pname = "dbt-sqlite";
version = "1.0.0"; version = "1.0.0";
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -12,4 +12,8 @@ buildPythonPackage rec {
inherit pname version; inherit pname version;
sha256 = "sha256-nIwk30kMvWBtbAPVE1kfdc4l9W3rWdBRB082OyoiccA="; sha256 = "sha256-nIwk30kMvWBtbAPVE1kfdc4l9W3rWdBRB082OyoiccA=";
}; };
};
in symlinkJoin {
name = "dbt-sqlite-bundled";
paths = [ dbt-sqlite sqlite ];
} }