From: Julien Lepiller <julien@lepiller.eu>
To: 30096@debbugs.gnu.org
Subject: [bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr.
Date: Sat, 13 Jan 2018 14:10:59 +0100 [thread overview]
Message-ID: <20180113141059.2cec5e82@lepiller.eu> (raw)
In-Reply-To: <87efmuuhj3.fsf@gmail.com>
Le Sat, 13 Jan 2018 05:25:52 -0600,
Peter Kreye <kreyepr@gmail.com> a écrit :
> * gnu/packages/ocaml.scm (ocaml-ocb-stubblr): New variable.
> ---
> gnu/packages/ocaml.scm | 36 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
>
> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
> index 40303c808..a60922c02 100644
> --- a/gnu/packages/ocaml.scm
> +++ b/gnu/packages/ocaml.scm
> @@ -3814,6 +3814,42 @@ functions that you want to call, then bind
> directly to those functions -- all without writing or generating any
> C!") (license license:expat)))
>
> +(define-public ocaml-ocb-stubblr
> + (package
> + (name "ocaml-ocb-stubblr")
> + (version "0.1.1")
> + (home-page "https://github.com/pqwy/ocb-stubblr")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> + home-page "/releases/download/v0.1.1/ocb-stubblr-"
> + version ".tbz"))
> + (file-name (string-append name "-" version ".tbz"))
> + (sha256
> + (base32
> +
> "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
> + (build-system ocaml-build-system)
> + (arguments
> + `(#:tests? #f
> + #:phases
> + (modify-phases %standard-phases
> + (delete 'configure)
> + (replace 'build
> + (lambda* (#:key outputs #:allow-other-keys)
> + (let ((libdir (string-append (assoc-ref %build-inputs
> "findlib")
> + "/lib/ocaml/site-lib")))
> + (zero? (system* "ocaml" "-I" libdir "pkg/pkg.ml"
> "build"))))))))
You don't need to replace the build phase, use #:build-flags (list
"build").
> + (inputs
> + `(("findlib" ,ocaml-findlib-1.7.3)
Similarly, I think it's better to use #:findlib.
> + ("topkg" ,ocaml-topkg)
> + ("astring" ,ocaml-astring)
> + ("opam", opam)))
> + (synopsis "OCamlbuild plugin for C stubs")
> + (description "Ocb-stubblr is about ten lines of code that you
> need to +repeat over, over, over and over again if you are using
> ocamlbuild to build +OCaml projects that contain C stubs.")
> + (license license:isc)))
> +
> (define-public coq-flocq
> (package
> (name "coq-flocq")
next prev parent reply other threads:[~2018-01-13 13:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-13 11:05 [bug#30096] Update ocaml-findlib; Add ocaml-tsdl and dependencies Peter Kreye
2018-01-13 11:14 ` [bug#30096] [PATCH 1/6] gnu: ocaml-findlib-1.7.3: Fix install Peter Kreye
2018-01-13 11:14 ` [bug#30096] [PATCH 2/6] gnu: Add ocaml-integers Peter Kreye
2018-01-13 12:57 ` Julien Lepiller
2018-01-13 13:08 ` Julien Lepiller
2018-01-19 5:32 ` Peter Kreye
2018-01-19 8:09 ` julien lepiller
2018-01-13 11:24 ` [bug#30096] [PATCH 3/6] gnu: Add ocaml-ctypes Peter Kreye
2018-01-13 12:59 ` Julien Lepiller
2018-01-19 5:52 ` Peter Kreye
2018-01-28 22:35 ` Ludovic Courtès
2018-01-13 11:25 ` [bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr Peter Kreye
2018-01-13 13:10 ` Julien Lepiller [this message]
2018-01-13 11:26 ` [bug#30096] [PATCH 5/6] gnu: Add ocaml-tsdl Peter Kreye
2018-01-13 13:16 ` Julien Lepiller
2018-01-13 11:27 ` [bug#30096] [PATCH 6/6] gnu: ocaml-findlib: Update to 1.7.3 Peter Kreye
2018-01-13 13:18 ` Julien Lepiller
2018-01-13 18:10 ` Leo Famulari
2018-01-16 14:30 ` Ludovic Courtès
2018-02-01 22:12 ` bug#30096: Update ocaml-findlib; Add ocaml-tsdl and dependencies 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=20180113141059.2cec5e82@lepiller.eu \
--to=julien@lepiller.eu \
--cc=30096@debbugs.gnu.org \
/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.