forked from fulsomenko/kanban
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
58 lines (51 loc) · 1.05 KB
/
Copy pathshell.nix
File metadata and controls
58 lines (51 loc) · 1.05 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
pkgs ? import <nixpkgs> {},
rustToolchain ? pkgs.rustc,
changeset ? null,
aggregateChangelog ? null,
bumpVersion ? null,
publishCrates ? null,
validateRelease ? null,
listCrates ? null,
checkCrateListSync ? null,
}:
let
scripts = builtins.filter (x: x != null) [
changeset
aggregateChangelog
bumpVersion
publishCrates
validateRelease
listCrates
checkCrateListSync
];
in
pkgs.mkShell {
name = "kanban-rust-shell";
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
# Rust toolchain
rustToolchain
cargo-watch
cargo-edit
cargo-audit
cargo-tarpaulin
# Development utilities
bacon
sqlite
] ++ lib.optionals stdenv.isLinux [
# Clipboard support
wayland
xorg.libxcb
wl-clipboard # for testing on Wayland
xclip # for testing on X11
] ++ scripts;
shellHook = ''
export RUST_BACKTRACE=1
echo "Kanban Development Environment"
echo "📦 Cargo: $(cargo --version)"
echo "🦀 Rustc: $(rustc --version)"
'';
}