-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
36 lines (31 loc) · 720 Bytes
/
shell.nix
File metadata and controls
36 lines (31 loc) · 720 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
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = with pkgs; [
# Rust toolchain
rustc
cargo
rustfmt
rust-analyzer
clippy
# Build dependencies
pkg-config
openssl
sqlite
# Additional development tools
git
] ++ lib.optionals stdenv.isDarwin [
# macOS specific dependencies
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
shellHook = ''
echo "🦀 Rust development environment (shell.nix)"
echo "Rust version: $(rustc --version)"
echo ""
echo "To use flakes instead, run: nix develop"
echo ""
'';
# Environment variables
RUST_BACKTRACE = "1";
DATABASE_URL = "todo.db";
}