From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaLbR-00011D-GZ for guix-patches@gnu.org; Sat, 13 Jan 2018 08:12:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaLbO-0005IM-AX for guix-patches@gnu.org; Sat, 13 Jan 2018 08:12:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaLbO-0005Hu-7Q for guix-patches@gnu.org; Sat, 13 Jan 2018 08:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eaLbN-0004Z9-Vu for guix-patches@gnu.org; Sat, 13 Jan 2018 08:12:02 -0500 Subject: [bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaLaW-0000lo-BH for guix-patches@gnu.org; Sat, 13 Jan 2018 08:11:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaLaT-0004Rw-5I for guix-patches@gnu.org; Sat, 13 Jan 2018 08:11:08 -0500 Received: from lepiller.eu ([89.234.186.109]:41006) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaLaS-0004RG-Uh for guix-patches@gnu.org; Sat, 13 Jan 2018 08:11:05 -0500 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 548a3011 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 13 Jan 2018 13:11:14 +0000 (UTC) Date: Sat, 13 Jan 2018 14:10:59 +0100 From: Julien Lepiller Message-ID: <20180113141059.2cec5e82@lepiller.eu> In-Reply-To: <87efmuuhj3.fsf@gmail.com> References: <87lgh2uigo.fsf@gmail.com> <87efmuuhj3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30096@debbugs.gnu.org Le Sat, 13 Jan 2018 05:25:52 -0600, Peter Kreye a =C3=A9crit : > * gnu/packages/ocaml.scm (ocaml-ocb-stubblr): New variable. > --- > gnu/packages/ocaml.scm | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) >=20 > 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))) > =20 > +(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")