From ca8deeb67a83c33cf16488b048224ccd76393791 Mon Sep 17 00:00:00 2001
From: divoplade <d@divoplade.fr>
Date: Wed, 9 Dec 2020 15:45:04 +0100
Subject: [PATCH] gnu: add ocaml-reactiveData
* ocaml.scm (ocaml-reactiveData): add ocaml-reactiveData
---
gnu/packages/ocaml.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
@@ -5859,3 +5859,38 @@ LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
generate OCaml code from .glade files), libpanel, librsvg and quartz.")
;; Version 2 only, with linking exception.
(license license:lgpl2.0)))
+
+(define ocaml-reactiveData
+ (package
+ (name "ocaml-reactiveData")
+ (version "0.2.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ocsigen/reactiveData")
+ (commit "aaf9ab6d64ff8ac7cde55b9148e2470406b2fa13")))
+ (sha256
+ (base32
+ "1b8a6dhv9i3k23g3k1x4n74dpp4bsifr4j7ks4v4ar6hkdj5vsa5"))))
+ (build-system dune-build-system)
+ (arguments
+ `(#:test-target "."
+ #:phases
+ (modify-phases
+ %standard-phases
+ (add-before 'build 'fix-deprecated
+ (lambda _
+ (substitute*
+ "src/reactiveData.ml"
+ (("Pervasives.compare") "compare"))
+ #t)))))
+ (propagated-inputs
+ `(("ocaml-react" ,ocaml-react)))
+ (home-page
+ "https://github.com/ocsigen/reactiveData")
+ (synopsis
+ "Declarative events and signals for OCaml")
+ (description
+ "React is an OCaml module for functional reactive programming (FRP). It provides support to program with time varying values : declarative events and signals. React doesn't define any primitive event or signal, it lets the client chooses the concrete timeline.")
+ (license license:lgpl2.1+)))
--
2.29.2