-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevshell.nix
51 lines (44 loc) · 919 Bytes
/
devshell.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
49
50
51
{ pkgs }:
with pkgs;
# Configure your development environment.
#
# Documentation: https://github.com/numtide/devshell
mkDevShell {
name = "rollup-wasm-nix-rust";
motd = ''
Welcome to the pkgs.rollup-wasm-nix-rust application.
'';
commands = [
];
bash = {
extra = ''
export LD_INCLUDE_PATH="$DEVSHELL_DIR/include"
export LD_LIB_PATH="$DEVSHELL_DIR/lib"
'';
interactive = '''';
};
env = {
OPENSSL_DIR = "${openssl.bin}/bin";
OPENSSL_LIB_DIR = "${openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${openssl.out.dev}/include";
};
packages = [
# build tools
## Rust
rollup-wasm-nix-rust.nix.rust-overlay
### Others
binutils
pkgconfig
openssl
openssl.dev
gcc
glibc
gmp.dev
nixpkgs-fmt
# Javascript related frontend
# It is also used for Rust's frontend development
nodejs-14_x
yarn
yarn2nix
];
}