-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdevenv.nix
48 lines (44 loc) · 967 Bytes
/
devenv.nix
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
{ pkgs, lib, config, inputs, ... }:
{
packages = with pkgs; [
cmake
libclang
pkg-config
xorg.libX11
xorg.libXi
xorg.libXtst
xorg.libxcb
libxkbcommon
xorg.libxkbfile
wayland
ninja
llvmPackages_latest.llvm
cargo-xwin
];
env.LIBCLANG_PATH="${pkgs.libclang.lib}/lib";
enterShell = ''
export BINDGEN_EXTRA_CLANG_ARGS="$NIX_CFLAGS_COMPILE \
$(< ${pkgs.clang}/nix-support/libc-cflags) \
$(< ${pkgs.clang}/nix-support/cc-cflags)"
'';
languages = {
rust = {
enable = true;
channel = "stable";
mold.enable = false;
targets = [
# "aarch64-unknown-linux-gnu"
"x86_64-unknown-linux-gnu"
"x86_64-pc-windows-msvc"
# "aarch64-pc-windows-msvc"
# "aarch64-pc-windows-msvc"
# "x86_64-apple-darwin"
# "x86_64-apple-darwin"
];
};
javascript = {
enable = true;
pnpm.enable = true;
};
};
}