moonstream/moonstreamdb/scm.nix

30 wiersze
879 B
Nix
Czysty Zwykły widok Historia

2022-05-10 11:28:24 +00:00
with builtins;
let
scm_repos = [
(getEnv "SCM_GIT")
(fetchGit {
url = "git@gitlab.com:deltaex/schematic.git";
2022-06-13 13:03:25 +00:00
rev = "ba5d7b40255e5da9a74e666dd88e309dae40fbd2";
2022-05-10 11:28:24 +00:00
})
];
scm_repo = head (filter (x: x != "") scm_repos);
scm = (import scm_repo {
verbose = true;
repos = [
"."
(getEnv "MDP_GIT")
(fetchGit {
2022-08-15 17:15:32 +00:00
url = "git@scm.mixrank.com:mixrank/mdp.git";
2022-08-11 18:07:05 +00:00
rev = "309e04f3f646847af3b7c084b01cfd72e1db92c8";
2022-05-10 11:28:24 +00:00
})
] ++ scm_repos;
});
in rec {
schematic = scm.shell.overrideAttrs ( oldAttrs : {
shellHook = oldAttrs.shellHook + ''
[ -n "$ENV" -a "$ENV" != "dev" ] && export BUGSNAG=2b987ca13cd93a4931bb746aace204fb
2022-07-07 10:48:41 +00:00
source /home/moonstream/moonstream-secrets/pg.env
2022-05-10 11:28:24 +00:00
'';
});
}