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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
fetchurl,
fetchpatch,
buildDunePackage,
dune-configurator,
ctypes,
integers,
patch,
libGL,
libx11,
libxcursor,
libxi,
libxinerama,
libxrandr,
}:
buildDunePackage (finalAttrs: {
pname = "raylib";
version = "1.4.0";
src = fetchurl {
url = "https://github.com/tjammer/raylib-ocaml/releases/download/${finalAttrs.version}/raylib-${finalAttrs.version}.tbz";
hash = "sha256-/SeKgQOrhsAgMNk6ODAZlopL0mL0lVfCTx1ugmV1P/s=";
};
patches = [
(fetchpatch {
name = "fix-build-with-patch-3.0.0.patch";
url = "https://github.com/tjammer/raylib-ocaml/commit/40e6fef44e3c39d4526806c4b830da77c4fe4bb8.patch";
excludes = [
"dune-project"
"raygui.opam"
];
hash = "sha256-MEZkkBgjL2iT6Av/s0tJCrW7+oyp9QD6sUbXEusCAWI=";
})
];
buildInputs = [
dune-configurator
patch
];
propagatedBuildInputs = [
ctypes
integers
libGL
libx11
libxcursor
libxi
libxinerama
libxrandr
];
meta = {
description = "OCaml bindings for Raylib (5.0.0)";
homepage = "https://tjammer.github.io/raylib-ocaml";
maintainers = with lib.maintainers; [ r17x ];
license = lib.licenses.mit;
};
})
|