diff --git a/moonstreamdb-v3/scm/pkg/blockchain-S0K5PY7LHKC4TFXZ/default.nix b/moonstreamdb-v3/scm/pkg/blockchain-S0K5PY7LHKC4TFXZ/default.nix new file mode 100644 index 00000000..5138ecb7 --- /dev/null +++ b/moonstreamdb-v3/scm/pkg/blockchain-S0K5PY7LHKC4TFXZ/default.nix @@ -0,0 +1,10 @@ +stdargs @ { scm, ... }: + +scm.schema { + guid = "S0K5PY7LHKC4TFXZ"; + name = "blockchain"; + upgrade_sql = ./upgrade.sql; + dependencies = [ + + ]; +} \ No newline at end of file diff --git a/moonstreamdb-v3/scm/pkg/blockchain-S0K5PY7LHKC4TFXZ/upgrade.sql b/moonstreamdb-v3/scm/pkg/blockchain-S0K5PY7LHKC4TFXZ/upgrade.sql new file mode 100644 index 00000000..e69de29b diff --git a/moonstreamdb-v3/scm/scm.nix b/moonstreamdb-v3/scm/scm.nix new file mode 100644 index 00000000..f35dbcfb --- /dev/null +++ b/moonstreamdb-v3/scm/scm.nix @@ -0,0 +1,29 @@ +with builtins; +let + scm_repos = [ + (getEnv "SCM_GIT") + (fetchGit { + url = "git@gitlab.com:deltaex/schematic.git"; + rev = "ba5d7b40255e5da9a74e666dd88e309dae40fbd2"; + }) + ]; + scm_repo = head (filter (x: x != "") scm_repos); + scm = (import scm_repo { + verbose = true; + repos = [ + "." + (getEnv "MDP_GIT") + (fetchGit { + url = "git@github.com:moonstream-to/api.git"; + rev = "e27476ac5327d5494d2db16bb9bf781f9fc14e41"; + }) + ] ++ scm_repos; + }); +in rec { + schematic = scm.shell.overrideAttrs ( oldAttrs : { + shellHook = oldAttrs.shellHook + '' + [ -n "$ENV" -a "$ENV" != "dev" ] + source /home/moonstream/moonstream-db-v3-indexes-secrets/pg.env + ''; + }); +}