Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
_build
*.install
*.merlin
*.merlin
/result
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,26 @@ opam install -t --deps-only .

Then, you can use `make` to build the library, and `make examples` to build the
example programs.

### Development using nix

wlroots-ocaml can be compiled with nix:

$ nix-build

To specify the version of wlroots - supported version are 0.12, 0.13 and 0.14:

$ nix-build --argstr wlroots-version 0.14

Open a nix shell with the program dependencies managed by nix:

$ nix-shell
$ make

The wlroots version can be specified for the nix shell, too:

$ nix-shell --argstr wlroots-version 0.14

To update the opam dependencies used by the nix system:

$ nix-shell opam2nix-shell.nix
2 changes: 2 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{ wlroots-version ? "0.12" }:
(import ./pin.nix { inherit wlroots-version; }).ocamlPackages.wlroots
Loading