-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevenv.nix
More file actions
43 lines (36 loc) · 983 Bytes
/
devenv.nix
File metadata and controls
43 lines (36 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ pkgs, ... }:
{
languages = {
rust.enable = true;
javascript.enable = true;
javascript.npm.enable = true;
};
packages = with pkgs; [
cargo-audit
cargo-criterion
gnuplot # For benchmarks
hurl
watchexec
sqlx-cli
tailwindcss_4
nodejs-slim
k3d
openssl.dev
perl
libxml2
clang
];
env = {
DATABASE_URL = "sqlite://database.db";
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
HURL_base_url = "http://127.0.0.1:8080";
HURL_fixture_url = "http://127.0.0.1:8080/secrets";
};
scripts = {
db-reinit.exec = "rm -f database.db*; cargo sqlx db create; cargo sqlx migrate run; cargo sqlx prepare --workspace";
watchexec-ee.exec = "watchexec -w src/ -w crates/magicentry-ee/src/ --no-vcs-ignore -r cargo run --package magicentry-ee";
watchexec-oss.exec = "watchexec -w src/ -r cargo run";
ce.exec = "cargo $* --package magicentry-ee";
je.exec = "jj -R crates/magicentry-ee";
};
}