moonstream/db/scm.nix

29 wiersze
812 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 {
url = "git@gitlab.com:mixrank/mdp.git";
2022-06-15 10:33:16 +00:00
rev = "57e5d9903235a171c5be76ebb876d66215e2ed7c";
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
'';
});
}