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 ]; };
postgres = pkgs.mkShell { packages = [dbt-core dbt-postgres ]; };
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, ...}:
with pkgs;
with python39Packages;
buildPythonPackage rec {
let
dbt-sqlite = buildPythonPackage rec {
pname = "dbt-sqlite";
version = "1.0.0";
propagatedBuildInputs = [
@ -12,4 +12,8 @@ buildPythonPackage rec {
inherit pname version;
sha256 = "sha256-nIwk30kMvWBtbAPVE1kfdc4l9W3rWdBRB082OyoiccA=";
};
};
in symlinkJoin {
name = "dbt-sqlite-bundled";
paths = [ dbt-sqlite sqlite ];
}