1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 dune-configurator,
6 ctypes,
7 integers,
8 patch,
9 libGL,
10 libX11,
11 libXcursor,
12 libXi,
13 libXinerama,
14 libXrandr,
15}:
16
17buildDunePackage rec {
18 pname = "raylib";
19 version = "1.4.0";
20
21 src = fetchurl {
22 url = "https://github.com/tjammer/raylib-ocaml/releases/download/${version}/raylib-${version}.tbz";
23 hash = "sha256-/SeKgQOrhsAgMNk6ODAZlopL0mL0lVfCTx1ugmV1P/s=";
24 };
25
26 buildInputs = [
27 dune-configurator
28 patch
29 ];
30
31 propagatedBuildInputs = [
32 ctypes
33 integers
34 libGL
35 libX11
36 libXcursor
37 libXi
38 libXinerama
39 libXrandr
40 ];
41
42 meta = {
43 description = "OCaml bindings for Raylib (5.0.0)";
44 homepage = "https://tjammer.github.io/raylib-ocaml";
45 maintainers = with lib.maintainers; [ r17x ];
46 license = lib.licenses.mit;
47 };
48}