Skip to content

Commit

Permalink
feat: bootstrap tool for local infra set up on macos only (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose authored Dec 4, 2024
1 parent ca87f92 commit ee952d9
Show file tree
Hide file tree
Showing 2 changed files with 414 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,12 @@
--subst-var-by 'NIX' '${pkgs.nixVersions.nix_2_20}/bin/nix'
chmod +x $out/bin/sync-exts-versions
'';

local-infra-bootstrap = pkgs.runCommand "local-infra-bootstrap" { } ''
mkdir -p $out/bin
substitute ${./nix/tools/local-infra-bootstrap.sh.in} $out/bin/local-infra-bootstrap
chmod +x $out/bin/local-infra-bootstrap
'';
dbmate-tool =
let
migrationsDir = ./migrations/db;
Expand Down Expand Up @@ -671,6 +677,7 @@
migrate-postgres = mkApp "migrate-tool" "migrate-postgres";
sync-exts-versions = mkApp "sync-exts-versions" "sync-exts-versions";
pg-restore = mkApp "pg-restore" "pg-restore";
local-infra-bootstrap = mkApp "local-infra-bootstrap" "local-infra-bootstrap";
dbmate-tool = mkApp "dbmate-tool" "dbmate-tool";
migration-unit-tests = mkApp "migration-unit-tests" "migration-unit-tests";
};
Expand Down
Loading

0 comments on commit ee952d9

Please sign in to comment.