Skip to content

Commit ee952d9

Browse files
authored
feat: bootstrap tool for local infra set up on macos only (#1331)
1 parent ca87f92 commit ee952d9

File tree

2 files changed

+414
-0
lines changed

2 files changed

+414
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,12 @@
512512
--subst-var-by 'NIX' '${pkgs.nixVersions.nix_2_20}/bin/nix'
513513
chmod +x $out/bin/sync-exts-versions
514514
'';
515+
516+
local-infra-bootstrap = pkgs.runCommand "local-infra-bootstrap" { } ''
517+
mkdir -p $out/bin
518+
substitute ${./nix/tools/local-infra-bootstrap.sh.in} $out/bin/local-infra-bootstrap
519+
chmod +x $out/bin/local-infra-bootstrap
520+
'';
515521
dbmate-tool =
516522
let
517523
migrationsDir = ./migrations/db;
@@ -671,6 +677,7 @@
671677
migrate-postgres = mkApp "migrate-tool" "migrate-postgres";
672678
sync-exts-versions = mkApp "sync-exts-versions" "sync-exts-versions";
673679
pg-restore = mkApp "pg-restore" "pg-restore";
680+
local-infra-bootstrap = mkApp "local-infra-bootstrap" "local-infra-bootstrap";
674681
dbmate-tool = mkApp "dbmate-tool" "dbmate-tool";
675682
migration-unit-tests = mkApp "migration-unit-tests" "migration-unit-tests";
676683
};

0 commit comments

Comments
 (0)