Skip to content

Commit df43d81

Browse files
committed
nix: Document usage.
1 parent c727b33 commit df43d81

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,26 @@ opam install -t --deps-only .
3333

3434
Then, you can use `make` to build the library, and `make examples` to build the
3535
example programs.
36+
37+
### Development using nix
38+
39+
wlroots-ocaml can be compiled with nix:
40+
41+
$ nix-build
42+
43+
To specify the version of wlroots - supported version are 0.12, 0.13 and 0.14:
44+
45+
$ nix-build --argstr wlroots-version 0.14
46+
47+
Open a nix shell with the program dependencies managed by nix:
48+
49+
$ nix-shell
50+
$ make
51+
52+
The wlroots version can be specified for the nix shell, too:
53+
54+
$ nix-shell --argstr wlroots-version 0.14
55+
56+
To update the opam dependencies used by the nix system:
57+
58+
$ nix-shell opam2nix-shell.nix

0 commit comments

Comments
 (0)