unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#45133] Add ocaml reactiveData
@ 2020-12-09 14:58 divoplade
  2020-12-09 15:40 ` Julien Lepiller
  0 siblings, 1 reply; 15+ messages in thread
From: divoplade @ 2020-12-09 14:58 UTC (permalink / raw)
  To: 45133

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

Dear guix,

I want to have js_of_ocaml into guix. Here is a dependency of it,
reactiveData. It is a simple package, but the build system changed from
ocaml-build-system to dune-build-system between the last release and
now, so I think we should use the latest commit.

Best regards,

divoplade

[-- Attachment #2: 0001-gnu-add-ocaml-reactiveData.patch --]
[-- Type: text/x-patch, Size: 1967 bytes --]

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(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 2bfda7307e..c394a1d263 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -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


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-12-15 14:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 14:58 [bug#45133] Add ocaml reactiveData divoplade
2020-12-09 15:40 ` Julien Lepiller
2020-12-09 17:03   ` divoplade
2020-12-09 17:59     ` zimoun
2020-12-09 18:05       ` divoplade
2020-12-09 18:35         ` zimoun
2020-12-09 19:12           ` Julien Lepiller
2020-12-10 12:41             ` zimoun
2020-12-10 12:49               ` divoplade
2020-12-10 12:42             ` divoplade
2020-12-10 13:53               ` Julien Lepiller
2020-12-10 14:12                 ` divoplade
2020-12-10 14:43                   ` zimoun
2020-12-10 14:57                     ` divoplade
2020-12-15 14:49                       ` bug#45133: " Julien Lepiller

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).