forked from lichess-org/lila
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevenv.nix
More file actions
50 lines (47 loc) · 958 Bytes
/
Copy pathdevenv.nix
File metadata and controls
50 lines (47 loc) · 958 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
pkgs,
lib,
config,
inputs,
...
}:
let
pkgs-master = import inputs.nixpkgs-master { system = pkgs.stdenv.system; };
pkgs-unstable = import inputs.nixpkgs-unstable { system = pkgs.stdenv.system; };
in
{
# https://devenv.sh/languages/
languages = {
java = {
enable = true;
jdk.package = pkgs.openjdk21;
};
scala = {
enable = true;
sbt.enable = true;
};
javascript = {
enable = false; # it adds node_modules/.bin to the $PATH!
};
};
# https://devenv.sh/services/
services = {
mongodb.enable = true;
redis.enable = true;
};
packages = [
pkgs-unstable.nodejs-slim
pkgs.pnpm
pkgs.svgo
pkgs-unstable.oxlint
pkgs-unstable.oxfmt
pkgs.lint-staged
pkgs.stylelint
pkgs.dart-sass
];
# pnpm installs dynamically linked binaries there,
# and forcefully adds the directory to the $PATH.
enterShell = ''
rm -rf node_modules/.bin
'';
}