From: divoplade <d@divoplade.fr>
To: Julien Lepiller <julien@lepiller.eu>, zimoun <zimon.toutoune@gmail.com>
Cc: 45133@debbugs.gnu.org
Subject: [bug#45133] Add ocaml reactiveData
Date: Thu, 10 Dec 2020 15:12:04 +0100 [thread overview]
Message-ID: <e26781478b7664107606e23495b5e07fbaee1116.camel@divoplade.fr> (raw)
In-Reply-To: <322C6C39-C571-4871-B3B1-D58D67913EEE@lepiller.eu>
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
Le jeudi 10 décembre 2020 à 08:53 -0500, Julien Lepiller a écrit :
> > If I delete the makefile in a snippet, the ocaml-build-system will
> > not
> > pass "native=true" to the pkg/build.ml script, so it fails. That's
> > why
> > there's a Makefile.
> >
> > If I replace my install command with opam-install, I get that opam-
> > install does not exist (I have opam in inputs and native-inputs).
> > Are
> > you sure that this program exists? I don't see it in the opam
> > package.
>
> Sorry, opam-installer.
The solution was to delete the Makefile just before the install phase
^^
I've tried to reproduce the changes of simon but I'm not sure I
reproduced the indentation correctly (it's different from what
etc/indent.el does, but a lot of ocaml packages are not indented
according to that script).
So the last point is about url-fetch vs git-fetch: why do you want to
use git-fetch?
[-- Attachment #2: 0001-gnu-add-ocaml-reactivedata.patch --]
[-- Type: text/x-patch, Size: 2257 bytes --]
From 6b4627f6d40b61b60788480e353a4592542684a4 Mon Sep 17 00:00:00 2001
From: divoplade <d@divoplade.fr>
Date: Thu, 10 Dec 2020 15:06:50 +0100
Subject: [PATCH] gnu: add ocaml-reactivedata
* ocaml.scm (ocaml-reactivedata): add ocaml-reactivedata
---
gnu/packages/ocaml.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 2bfda7307e..4cd1e05464 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5859,3 +5859,44 @@ 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-public ocaml-reactivedata
+ ;; Future releases will use dune.
+ (package
+ (name "ocaml-reactivedata")
+ (version "0.2.2")
+ (source (origin
+ (method url-fetch)
+ (uri "https://github.com/ocsigen/reactiveData/archive/0.2.2.tar.gz")
+ (sha256
+ (base32
+ "0jzagyp4zla28wykvcgqwd8df71ir0vb4s8akp02cfacd5v86sng"))))
+ (arguments
+ `(#:phases
+ (modify-phases
+ %standard-phases
+ (delete 'configure)
+ (add-before 'build 'fix-deprecated
+ (lambda _
+ (substitute*
+ "src/reactiveData.ml"
+ (("Pervasives.compare") "compare"))
+ #t))
+ (add-before 'install 'forget-makefile
+ (lambda _
+ (delete-file "Makefile")
+ #t)))))
+ (build-system ocaml-build-system)
+ (native-inputs
+ `(("ocamlbuild" ,ocamlbuild)
+ ("opam" ,opam)))
+ (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
next prev parent reply other threads:[~2020-12-10 14:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-12-10 14:43 ` zimoun
2020-12-10 14:57 ` divoplade
2020-12-15 14:49 ` bug#45133: " Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e26781478b7664107606e23495b5e07fbaee1116.camel@divoplade.fr \
--to=d@divoplade.fr \
--cc=45133@debbugs.gnu.org \
--cc=julien@lepiller.eu \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.