forked from ethersphere/bee-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
30 lines (25 loc) · 684 Bytes
/
shell.nix
File metadata and controls
30 lines (25 loc) · 684 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
# This is a descriptor for the Nix package manager.
# Invoke nix-shell in this directory to enter an environment where
# everything gets downloaded and made available for development.
# With the shellHook enabled it will even start up a local
# HTTP server serving the docs.
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
coreutils diffutils
bash-completion less
gitFull
nodejs-14_x
# keep this line if you use bash
bashInteractive
];
buildCommand = ''
npm run build
'';
shellHook =
''
# ideally, npm ci should be here, and it should run fast when it has nothing to do...
# npm ci
npm start
'';
}