From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaJws-0007Rl-1E for guix-patches@gnu.org; Sat, 13 Jan 2018 06:26:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaJwo-0007mv-TI for guix-patches@gnu.org; Sat, 13 Jan 2018 06:26:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaJwo-0007mj-Ol for guix-patches@gnu.org; Sat, 13 Jan 2018 06:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eaJwo-0000BX-Iy for guix-patches@gnu.org; Sat, 13 Jan 2018 06:26:02 -0500 Subject: [bug#30096] [PATCH 4/6] gnu: Add ocaml-ocb-stubblr. References: <87lgh2uigo.fsf@gmail.com> In-Reply-To: <87lgh2uigo.fsf@gmail.com> Resent-Message-ID: From: Peter Kreye Date: Sat, 13 Jan 2018 05:25:52 -0600 Message-ID: <87efmuuhj3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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 * 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")))))))) + (inputs + `(("findlib" ,ocaml-findlib-1.7.3) + ("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") -- 2.14.2