From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SC9KNOU3UGLRJgEAgWs5BA (envelope-from ) for ; Fri, 08 Apr 2022 15:25:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aK+nMeU3UGLVKgAA9RJhRA (envelope-from ) for ; Fri, 08 Apr 2022 15:25:57 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8691B150BD for ; Fri, 8 Apr 2022 15:25:57 +0200 (CEST) Received: from localhost ([::1]:60464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncoce-0004y4-NY for larch@yhetil.org; Fri, 08 Apr 2022 09:25:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncobE-0002Xk-58 for guix-patches@gnu.org; Fri, 08 Apr 2022 09:24:28 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncoaw-0001RX-RU for guix-patches@gnu.org; Fri, 08 Apr 2022 09:24:27 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncoaw-0007uZ-ON for guix-patches@gnu.org; Fri, 08 Apr 2022 09:24:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53882] [PATCH v2 22/25] gnu: Add ocaml-core-kernel. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 13:24:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53882 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53882@debbugs.gnu.org Cc: Julien Lepiller Received: via spool by 53882-submit@debbugs.gnu.org id=B53882.164942423330218 (code B ref 53882); Fri, 08 Apr 2022 13:24:10 +0000 Received: (at 53882) by debbugs.gnu.org; 8 Apr 2022 13:23:53 +0000 Received: from localhost ([127.0.0.1]:34282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncoae-0007rE-Ur for submit@debbugs.gnu.org; Fri, 08 Apr 2022 09:23:53 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:34532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncoaT-0007n8-5W for 53882@debbugs.gnu.org; Fri, 08 Apr 2022 09:23:42 -0400 Received: by mail-wr1-f46.google.com with SMTP id m30so12871922wrb.1 for <53882@debbugs.gnu.org>; Fri, 08 Apr 2022 06:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z0T9ACY2rx/RRj1XnAu281QCAB3eI3/k33Y3QS8mFbc=; b=WAuMrGFe6ukMS9CZhP8tm9nBwBIbTViL1fm3n1cMEgbCj8zmS361wQWj3VAFM7H8jd fiy0nMe/coRSiasHnARPObIBilVT+ewvJ/0X2Biui4JrPz9Sgrxr3RfqkAqWeCnsUaQx dSc2OIluozg7iBNIxN2xpzrjVGKwKko3EputcOpbG3MJftW+MvTSQw+p/evUTd9I2oyX RRijdLtn3bcRWQh79LX28oijooA2w/UCSn2rzdRmfb+QyJVBko9H7UM8g9gNAQro0mUe fUHYoO5UKzzZrEEWyI3e1zxqAOKU7Bbw53f4SiEahYem1gJ37meO1J44ePZEA+DQKskq zBog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z0T9ACY2rx/RRj1XnAu281QCAB3eI3/k33Y3QS8mFbc=; b=BRi9i9bi2nquPqgeMDp7NerJ0N51EGUzcJ6nWjOU3zv0eHEe7x3+VMNNqE8NzEKqTx YhD9N/bMGPuCxA7iVdEQMMZbebN+1uWcvXG8/7dv42E7cXz99ai1A8UK49LfHJNeTvV4 2KXlkCvH7FOK9+KS7YD/gkMWk+Nr5qW2tHQxWynaE+litUgEYtuE3+QAfzpcHMrj0kUG q1cTRtVU4lerDeq6Dk3XRS8i9beZJi+U/JnVqg9FwwXWKnHUR4/ipwJuFyA4ExyJ3QUw nV5Oby5dkUC7TO6mb7n+DjZFTwWRwNmxW68GOrXI3Q1vYELF76r/6c5YVE7zagKX/3Ga BRxQ== X-Gm-Message-State: AOAM530HRRTY4IL0zOVN50l932Pb194BzSEUZNjtnWPfMYYAs4ANDyiT Y+HoBcDygHt543Qhdc1JJBM/ra4Cxnw= X-Google-Smtp-Source: ABdhPJwtvanXr3/08PlbX/yH+NYxROR130AtL8mwbS/GqTCtster8CvRnJ12Ud197yMtfL+AoCzGug== X-Received: by 2002:adf:e301:0:b0:205:db69:6dba with SMTP id b1-20020adfe301000000b00205db696dbamr15266950wrj.605.1649424215492; Fri, 08 Apr 2022 06:23:35 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id z3-20020a1cf403000000b0037d1f4a2201sm10108954wma.21.2022.04.08.06.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 06:23:35 -0700 (PDT) From: zimoun Date: Fri, 8 Apr 2022 15:23:02 +0200 Message-Id: <20220408132305.3301350-22-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220408132305.3301350-1-zimon.toutoune@gmail.com> References: <20220408132305.3301350-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649424357; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=z0T9ACY2rx/RRj1XnAu281QCAB3eI3/k33Y3QS8mFbc=; b=ccchtihMnjB68+glAzeL3t3bHA8c/lu4cTyshvVu562Rv6eMDJl/gw3hnCOFgd5CRSJ0Jp Uv5GugHe4wzb1iTy+L6bVaWalRgKYMay5RZI5WuxIkTjQfiE2X1tdHsixy3kLCI/63593u 8hkDfzRReFevAa4mmWrY+2rwy90shXMqOtYmKuRyHpZtokf/xNnUKWyk3en6y7kqbGjp6A KAfKXHXYAoy1K1wic8TDHGTRm9NMxyE3obsF2OgxsvCdyN4JoXIaH3Y0GfiQpL3Fquk2sM nhF4F6HkmhjXVDtKBXWAipx8bs9zDqE/rd49jYPHQuFXSRaFDmAcyL+PmxSnfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649424357; a=rsa-sha256; cv=none; b=gLEPLpUc4VrPOlmIGelB5LQks9xWp9hZLhqws2bJWhgisojUGsXTGTm9E6OQOw0zC+uysB 2ouRPVaH3BqMdxBtWKv05zGgGuW5oXBlXIV5gp5ukieHemOea0JtOSDv0BdSG8Sd4S01nO UP8W33PASln2caglOft/qAj+/KofeUhEfYtdZHym5PdgM2nWDoP4+zehj5flz6XPL/fov/ NIFn7c2k1zslGGBtifrzzLmHJBftrslCTCCyPMgthpBq7SlFAI4mTLRztAGVH1QKoHyTXU oEpdV0lP7uyeoezafs4vdqgvDs+VbRJdqMv6dwUqJcJlNoA+N8gxhUK65+BbEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WAuMrGFe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=WAuMrGFe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8691B150BD X-Spam-Score: 5.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: rLixuBfn89df From: Julien Lepiller * gnu/packages/ocaml.scm (ocaml-core-kernel): New variable. (ocaml4.07-core-kernel): Inherit from it. --- gnu/packages/ocaml.scm | 118 +++++++++++++++++++++++++++-------------- 1 file changed, 77 insertions(+), 41 deletions(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index ba21f76759..be6477edbe 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6887,58 +6887,94 @@ (define-public ocaml4.07-core ;; by OCaml's license for consortium members (see THIRD-PARTY.txt). (license license:asl2.0))) -(define-public ocaml4.07-core-kernel +(define-public ocaml-core-kernel (package - (name "ocaml4.07-core-kernel") - (version "0.11.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/janestreet/core_kernel") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g")))) + (name "ocaml-core-kernel") + (version "0.14.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/janestreet/core_kernel") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vxv9rq6m52n60gprm4sqjj1i1p4dd4sgns068hkp9g558d8zdjx")))) (build-system dune-build-system) (arguments ;; Cyclic dependency with ocaml-core - `(#:tests? #f - #:ocaml ,ocaml-4.07 - #:findlib ,ocaml4.07-findlib - #:dune ,ocaml4.07-dune)) + `(#:tests? #f)) (propagated-inputs - `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base)) - ("ocaml-bin-prot" ,ocaml4.07-bin-prot) - ("ocaml-configurator" ,ocaml4.07-configurator) - ("ocaml-fieldslib" ,(package-with-ocaml4.07 ocaml-fieldslib)) - ("ocaml-jane-street-headers" ,ocaml4.07-jane-street-headers) - ("ocaml-ppx-assert" ,(package-with-ocaml4.07 ocaml-ppx-assert)) - ("ocaml-ppx-base" ,(package-with-ocaml4.07 ocaml-ppx-base)) - ("ocaml-ppx-hash" ,(package-with-ocaml4.07 ocaml-ppx-hash)) - ("ocaml-ppx-inline-test" ,(package-with-ocaml4.07 ocaml-ppx-inline-test)) - ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane) - ("ocaml-ppx-sexp-conv" ,(package-with-ocaml4.07 ocaml-ppx-sexp-conv)) - ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message) - ("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib)) - ("ocaml-splittable-random" ,ocaml4.07-splittable-random) - ("ocaml-stdio" ,(package-with-ocaml4.07 ocaml-stdio)) - ("ocaml-typerep" ,ocaml4.07-typerep) - ("ocaml-variantslib" ,(package-with-ocaml4.07 ocaml-variantslib)) - ("ocaml-migrate-parsetree" - ,(package-with-ocaml4.07 ocaml-migrate-parsetree)))) - (properties `((upstream-name . "core_kernel"))) + (list ocaml-base + ocaml-base-bigstring + ocaml-base-quickcheck + ocaml-bin-prot + ocaml-fieldslib + ocaml-jane-street-headers + ocaml-jst-config + ocaml-ppx-assert + ocaml-ppx-base + ocaml-ppx-hash + ocaml-ppx-inline-test + ocaml-ppx-jane + ocaml-ppx-sexp-conv + ocaml-ppx-sexp-message + ocaml-sexplib + ocaml-splittable-random + ocaml-stdio + ocaml-time-now + ocaml-typerep + ocaml-variantslib + ocaml-ppx-optcomp)) + (properties `((upstream-name . "core_kernel") + (ocaml4.07-variant . ,(delay ocaml4.07-core-kernel)))) (home-page "https://github.com/janestreet/core_kernel") (synopsis "Portable standard library for OCaml") (description "Core is an alternative to the OCaml standard library. Core_kernel is the system-independent part of Core. It is aimed for cases when the full Core is not available, such as in Javascript.") - (license (list - ;; this package and parts of OCaml, relicensed by janestreet - license:asl2.0 - ;; MLton and sjs - license:expat)))) + (license license:expat))) + +(define-public ocaml4.07-core-kernel + (package-with-ocaml4.07 + (package + (inherit ocaml-core-kernel) + (version "0.11.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/janestreet/core_kernel") + (commit (string-append "v" version)))) + (file-name (git-file-name "ocaml4.07-core-kernel" version)) + (sha256 + (base32 + "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g")))) + (propagated-inputs + (list ocaml-base + ocaml-bin-prot + ocaml4.07-configurator + ocaml-fieldslib + ocaml-jane-street-headers + ocaml-ppx-assert + ocaml-ppx-base + ocaml-ppx-hash + ocaml-ppx-inline-test + ocaml-ppx-jane + ocaml-ppx-sexp-conv + ocaml-ppx-sexp-message + ocaml-sexplib + ocaml-splittable-random + ocaml-stdio + ocaml-typerep + ocaml-variantslib + ocaml-migrate-parsetree)) + (properties '()) + (license (list + ;; this package and parts of OCaml, relicensed by janestreet + license:asl2.0 + ;; MLton and sjs + license:expat))))) (define-public ocaml-markup (package -- 2.34.0