forked from bluecatengineering/dora
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
34 lines (30 loc) · 749 Bytes
/
shell.nix
File metadata and controls
34 lines (30 loc) · 749 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
{pkgs ? import <nixpkgs> {}, ...}:
pkgs.mkShell {
buildInputs = with pkgs.buildPackages; [
pkg-config
openssl
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
rust-analyzer
];
# Production
# DATABASE_URL = "sqlite:////var/lib/dora/leases.db?mode=rwc";
# DBEE_CONNECTIONS = "[
# {
# \"name\": \"dora_db\",
# \"type\": \"sqlite\",
# \"url\": \"/var/lib/dora/leases.db?mode=rwc\"
# }
# ]";
# Development
DATABASE_URL = "sqlite://./em.db?mode=rwc";
DBEE_CONNECTIONS = "[
{
\"name\": \"dora_db\",
\"type\": \"sqlite\",
\"url\": \"./em.db?mode=rwc\"
}
]";
# Fix jemalloc-sys build error on nixos
# _FORTIFY_SOURCE = 0;
hardeningDisable = ["all"];
}