Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat(devenv): Add sqlfluff and devenv up
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Aug 24, 2024
1 parent 4fd1ee1 commit e80fbed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
pkgs.cargo-edit
pkgs.cargo-nextest
pkgs.protobuf
pkgs.sqlfluff
]
++ lib.optionals pkgs.stdenv.isDarwin (
with pkgs.darwin.apple_sdk; [ frameworks.SystemConfiguration ]
Expand All @@ -31,7 +32,17 @@
languages.rust.channel = "nightly";

# https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch";
processes.backend = {
exec = "cargo run --release";
process-compose = {
depends_on = {
postgres.condition = "process_healthy";
};
environment = [
"PORT=30000"
];
};
};

# https://devenv.sh/services/
services.postgres.enable = true;
Expand Down

0 comments on commit e80fbed

Please sign in to comment.