-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdevenv.nix
More file actions
43 lines (36 loc) · 874 Bytes
/
Copy pathdevenv.nix
File metadata and controls
43 lines (36 loc) · 874 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
{ pkgs, lib, config, ... }:
{
# https://devenv.sh/basics/
env.SOULSOLID_CONFIG_PATH = "./config.yaml";
# https://devenv.sh/packages/
packages = [
pkgs.tailwindcss
pkgs.tree
pkgs.chromaprint # fpcalc, used for audio fingerprinting
pkgs.flac
pkgs.id3v2
];
# https://devenv.sh/languages/
languages.go.enable = true;
languages.javascript = {
enable = true;
package = pkgs.nodejs_24;
npm = {
enable = true;
install.enable = true; # runs `npm install` (= `npm ci` when a lockfile exists)
};
};
# https://devenv.sh/scripts/
scripts.build-assets.exec = ''
npm run build:css
npm run build:assets
npm run copy:deps
'';
# https://devenv.sh/processes/
# Run with: devenv up
processes.soulsolid.exec = "npm run dev";
# https://devenv.sh/basics/
enterShell = ''
build-assets
'';
}