1{
2 lib,
3 fetchpatch,
4 buildDunePackage,
5 fetchFromGitHub,
6 dune-configurator,
7 liblo,
8}:
9
10buildDunePackage rec {
11 pname = "lo";
12 version = "0.2.0";
13
14 minimalOCamlVersion = "4.06";
15
16 src = fetchFromGitHub {
17 owner = "savonet";
18 repo = "ocaml-lo";
19 rev = "v${version}";
20 sha256 = "0mi8h6f6syxjkxz493l5c3l270pvxx33pz0k3v5465wqjsnppar2";
21 };
22
23 patches = [
24 (fetchpatch {
25 url = "https://github.com/savonet/ocaml-lo/commit/0b43bdf113c7e2c27d55c6a5f81f2fa4b30b5454.patch";
26 hash = "sha256-Y5xewkKgTX9WIpbmVA9uA6N7KOPPhNguTWvowgoAcNU=";
27 })
28 ];
29
30 buildInputs = [ dune-configurator ];
31 propagatedBuildInputs = [ liblo ];
32
33 meta = with lib; {
34 homepage = "https://github.com/savonet/ocaml-lo";
35 description = "Bindings for LO library";
36 license = licenses.lgpl21Plus;
37 maintainers = with maintainers; [ dandellion ];
38 };
39}