Skip to content

Commit

Permalink
feat: bootstrap tool for local infra set up on macos only
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Nov 20, 2024
1 parent 1bc4749 commit 241f519
Show file tree
Hide file tree
Showing 2 changed files with 413 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@
--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
'';
};

# Create a testing harness for a PostgreSQL package. This is used for
Expand Down Expand Up @@ -657,6 +662,7 @@
migration-test = 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";
};

# 'devShells.default' lists the set of packages that are included in the
Expand Down
Loading

0 comments on commit 241f519

Please sign in to comment.