-
Notifications
You must be signed in to change notification settings - Fork 0
/
devshell.nix
65 lines (54 loc) · 1.04 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ pkgs }:
with pkgs;
# Configure your development environment.
#
# Documentation: https://github.com/numtide/devshell
devshell.mkShell {
name = "friday-kata-nix";
motd = ''
Welcome to the friday-kata playground.
If you see this message, it means your are inside the Nix shell.
Command available:
- TODO: add typescript related commands
'';
commands = [
{ package = pkgs.dbmate; }
];
bash = {
extra = ''
export LD_INCLUDE_PATH="$DEVSHELL_DIR/include"
export LD_LIB_PATH="$DEVSHELL_DIR/lib"
'';
interactive = "";
};
env = [
{
name = "OPENSSL_DIR";
value = "${openssl.bin}/bin";
}
{
name = "OPENSSL_LIB_DIR";
value = "${openssl.out}/lib";
}
{
name = "OPENSSL_INCLUDE_DIR";
value = "${openssl.out.dev}/include";
}
];
packages = [
# Build Tools
## Others
binutils
pkg-config
openssl
openssl.dev
gcc
glibc
gmp.dev
nixpkgs-fmt
## Javascript / Typescript
nodejs_20
yarn
yarn2nix
];
}