##// END OF EJS Templates
build: updated docs
marcink -
r3161:4b52d85d default
parent child Browse files
Show More
@@ -1,60 +1,65 b''
1 1
2 2 ==============================
3 3 Generate the Nix expressions
4 4 ==============================
5 5
6 6 Details can be found in the repository of `RhodeCode Enterprise CE`_ inside of
7 7 the file `docs/contributing/dependencies.rst`.
8 8
9 9 Start the environment as follows:
10 10
11 11 .. code:: shell
12 12
13 13 nix-shell pkgs/shell-generate.nix
14 14
15 15
16 16
17 17 Python dependencies
18 18 ===================
19 19
20 20 .. code:: shell
21 21
22 22 pip2nix generate --licenses
23 23 # or
24 24 nix-shell pkgs/shell-generate.nix --command "pip2nix generate --licenses"
25 25
26 26
27 27 NodeJS dependencies
28 28 ===================
29 29
30 Generate node-packages.nix file with all dependencies from NPM and package.json file
31 This should be run before entering nix-shell.
32
30 33 .. code:: shell
31 34
32 35 rm -rf node_modules
33 36 nix-shell pkgs/shell-generate.nix --command "
34 37 node2nix --input package.json \
35 38 -o pkgs/node-packages.nix \
36 39 -e pkgs/node-env.nix \
37 40 -c pkgs/node-default.nix \
38 41 -d --flatten --nodejs-8 "
39 42
43 # fix bug with http rewrite of re-generated packages
44 sed -i -e 's/http:\/\//https:\/\//g' pkgs/node-packages.nix
40 45
41 46
42 47 Bower dependencies
43 48 ==================
44 49
45 50 .. code:: shell
46 51
47 52 nix-shell pkgs/shell-generate.nix --command "bower2nix bower.json pkgs/bower-packages.nix"
48 53
49 54
50 55 Generate license data
51 56 =====================
52 57
53 58 .. code:: shell
54 59
55 60 nix-build pkgs/license-generate.nix -o result-license && cat result-license/licenses.json | python -m json.tool > rhodecode/config/licenses.json
56 61
57 62
58 63 .. Links
59 64
60 65 .. _RhodeCode Enterprise CE: https://code.rhodecode.com/rhodecode-enterprise-ce
General Comments 0
You need to be logged in to leave comments. Login now