From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: [PATCH 41/96] gnu: Add ocaml-batteries Date: Tue, 3 Jan 2017 20:11:22 +0100 Message-ID: <20170103191217.6431-42-julien@lepiller.eu> References: <20170103191217.6431-1-julien@lepiller.eu> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOUXh-0000dU-Up for guix-devel@gnu.org; Tue, 03 Jan 2017 14:14:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOUXg-0005Y0-Uk for guix-devel@gnu.org; Tue, 03 Jan 2017 14:14:41 -0500 Received: from dau94-h03-89-91-205-84.dsl.sta.abo.bbox.fr ([89.91.205.84]:35377 helo=skaro.lepiller.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOUXg-0005XC-M9 for guix-devel@gnu.org; Tue, 03 Jan 2017 14:14:40 -0500 Received: from localhost (localhost [127.0.0.1]) by skaro.lepiller.eu (Postfix) with ESMTP id 367A081262 for ; Tue, 3 Jan 2017 20:14:38 +0100 (CET) Received: from skaro.lepiller.eu ([127.0.0.1]) by localhost (lepiller.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wqjOLhbqZxzV for ; Tue, 3 Jan 2017 20:14:35 +0100 (CET) Received: from localhost.localdomain (128-79-116-134.hfc.dyn.abo.bbox.fr [128.79.116.134]) by skaro.lepiller.eu (Postfix) with ESMTPSA id 3651A81267 for ; Tue, 3 Jan 2017 20:13:04 +0100 (CET) In-Reply-To: <20170103191217.6431-1-julien@lepiller.eu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/ocaml.scm (ocaml-batteries): New variable. --- gnu/packages/ocaml.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index bea104f37..2975004b0 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -1684,3 +1684,25 @@ tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.") (license (list license:lgpl2.1; libmojave license:expat; OMake scripts license:gpl2)))); OMake itself, with an exception + +(define-public ocaml-batteries + (package + (name "ocaml-batteries") + (version "2.5.3") + (home-page "http://batteries.forge.ocamlcore.org/") + (source (ocaml-forge-origin "batteries" version 1650 + "1a97w3x2l1jr5x9kj5gqm1x6b0q9fjqdcsvls7arnl3bvzgsia0n")) + (build-system ocaml-build-system) + (native-inputs `(("qtest" ,ocaml-qtest) + ("bisect" ,ocaml-bisect) + ("ounit" ,ocaml-ounit))) + (arguments `(#:phases (modify-phases %standard-phases + (delete 'check); tests are run by the build phase + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (zero? (system* "ocaml" "setup.ml" "-build"))))))) + (synopsis "Development platform for the OCaml programming language") + (description "Define a standard set of libraries which may be expected on +every compliant installation of OCaml and organize these libraries into a +hierarchy of modules.") + (license license:lgpl2.1+))) -- 2.11.0