From patchwork Mon Nov 22 15:35:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 34743 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C2EBF27BBE3; Mon, 22 Nov 2021 15:36:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4538F27BBE1 for ; Mon, 22 Nov 2021 15:36:15 +0000 (GMT) Received: from localhost ([::1]:50200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpBMb-0004pi-Fn for patchwork@mira.cbaines.net; Mon, 22 Nov 2021 10:36:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpBMT-0004mx-1c for guix-patches@gnu.org; Mon, 22 Nov 2021 10:36:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpBMS-0005bC-PT for guix-patches@gnu.org; Mon, 22 Nov 2021 10:36:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpBMS-0001cD-MR for guix-patches@gnu.org; Mon, 22 Nov 2021 10:36:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52039] [PATCH 6/7] gnu: Add ocaml-lambda-term. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Nov 2021 15:36:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52039 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52039@debbugs.gnu.org Cc: zimoun Received: via spool by 52039-submit@debbugs.gnu.org id=B52039.16375953436121 (code B ref 52039); Mon, 22 Nov 2021 15:36:04 +0000 Received: (at 52039) by debbugs.gnu.org; 22 Nov 2021 15:35:43 +0000 Received: from localhost ([127.0.0.1]:48886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpBM6-0001aY-Id for submit@debbugs.gnu.org; Mon, 22 Nov 2021 10:35:42 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]:44648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpBM1-0001ZD-59 for 52039@debbugs.gnu.org; Mon, 22 Nov 2021 10:35:38 -0500 Received: by mail-wr1-f45.google.com with SMTP id n29so33426817wra.11 for <52039@debbugs.gnu.org>; Mon, 22 Nov 2021 07:35:37 -0800 (PST) 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=IqAjJznyEBMPZGRmh/Du1aDUFAJS+cAr+4GWT9HfR/0=; b=EpySdbv+d/uw371oD8xz9jC9FWroaYIqRtdlcx7XYbAqglu4nskD4J2kJyRsjiZ1Sc rooa/L60jT8o+TZ/N67qXTWf932X2S2H6XjkYinCVIEo+mdEQ3tJZIpSamKx5cXbyHDO 9dY/BAdrbFFrqgKKf3C/O5D29Io5IgV//OuWcisb0OOVF+HoedtRoOrYvQwQG1SfFpfu Ym6Hso0X/5aSI/tz1M7R/Hxzn/SgSb/KNPVZtE3aT2Itt9F0w1zErTxK3EBLQ+kn5ZB1 fJhZJqsA0Pym2FGXUKAYlICUawsPmQb5pRaFbOKG2tQvaY3U9m6VdF4h1x1m50EF9rN4 vNOA== 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=IqAjJznyEBMPZGRmh/Du1aDUFAJS+cAr+4GWT9HfR/0=; b=tEMn+LSxBXifQyXJvFNFXus19ePF/SDJx5n5sVYjoZSM1Xt6HCWyBsfezZXOIBHJNw rGiai81ASSprADMSRyoNtPzVgr+kIv3H0CPgaCQxrNWxmm6UteR+eURWHYFAjIH7azxq 1sZmXrzx5Kmy8eMNBm6DNM6tBVUmMcjb8siwB0a7TwIuIRg52WBkT7V/1IPE3WjKVu3s az76dnXXv5cc2qNYZnpicK7a3FCKqTVBbo0O1jwmGJCDvVdLHj35M9reoQvjrtpsANym VaarepEPxdSwTCUI0vUTAlhcEjzRiTdSazbN2PsW1xqxqdFznGLEosZ606ipPhLrqLZz 4d5A== X-Gm-Message-State: AOAM533SelnL0w9gXBWZfH8/rH8/N7ddsbrai5sDxJFMXtXx1PBP1HGt l5Y8/45pby/cd2ExkF6QRTr4jqNj56o= X-Google-Smtp-Source: ABdhPJzdq2w8hMikxLB/Cel517I7a61Q7Ifdk3ye6iYV2rmnIoHRydQEqny3+tvZ9HaJ2IidS9vkJg== X-Received: by 2002:adf:e848:: with SMTP id d8mr38674295wrn.3.1637595331563; Mon, 22 Nov 2021 07:35:31 -0800 (PST) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id o9sm9409147wrs.4.2021.11.22.07.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Nov 2021 07:35:31 -0800 (PST) From: zimoun Date: Mon, 22 Nov 2021 16:35:25 +0100 Message-Id: <20211122153526.51833-6-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211122153526.51833-1-zimon.toutoune@gmail.com> References: <20211122153526.51833-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml.scm (ocaml-lambda-term): New variable. (omca4.07-lambda-term): Inherit and adjust source. [arguments]: Set tests. --- gnu/packages/ocaml.scm | 51 +++++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 032347a28e..f63a00f1d8 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -4077,22 +4077,56 @@ (define-public ocaml4.07-zed ("ocaml-charinfo-width" ,(package-with-ocaml4.07 ocaml-charinfo-width)) ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react)))))) +(define-public ocaml-lambda-term + (package + (name "ocaml-lambda-term") + (version "3.1.0") + (home-page "https://github.com/ocaml-community/lambda-term") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1k0ykiz0vhpyyj9fkss29ajas4fh1xh449j702xkvayqipzj1mkg")))) + (build-system dune-build-system) + (arguments + `(#:test-target ".")) + (propagated-inputs + `(("ocaml-lwt" ,ocaml-lwt) + ("ocaml-lwt-log" ,ocaml-lwt-log) + ("ocaml-react" ,ocaml-react) + ("ocaml-zed" ,ocaml-zed) + ("ocaml-camomile" ,ocaml-camomile) + ("ocaml-lwt-react" ,ocaml-lwt-react) + ("ocaml-mew-vi" ,ocaml-mew-vi))) + (synopsis "Terminal manipulation library for OCaml") + (description "Lambda-Term is a cross-platform library for manipulating the +terminal. It provides an abstraction for keys, mouse events, colors, as well as +a set of widgets to write curses-like applications. The main objective of +Lambda-Term is to provide a higher level functional interface to terminal +manipulation than, for example, ncurses, by providing a native OCaml interface +instead of bindings to a C library.") + (license license:bsd-3))) + (define-public ocaml4.07-lambda-term (package + (inherit ocaml-lambda-term) (name "ocaml4.07-lambda-term") (version "2.0.2") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/diml/lambda-term") + (url "https://github.com/ocaml-community/lambda-term") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy")))) - (build-system dune-build-system) (arguments - `(#:tests? #f + `(#:test-target "." #:ocaml ,ocaml-4.07 #:findlib ,ocaml4.07-findlib #:dune ,ocaml4.07-dune)) @@ -4100,16 +4134,7 @@ (define-public ocaml4.07-lambda-term `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt)) ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log)) ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react)) - ("ocaml-zed" ,ocaml4.07-zed))) - (home-page "https://github.com/diml/lambda-term") - (synopsis "Terminal manipulation library for OCaml") - (description "Lambda-Term is a cross-platform library for manipulating the -terminal. It provides an abstraction for keys, mouse events, colors, as well as -a set of widgets to write curses-like applications. The main objective of -Lambda-Term is to provide a higher level functional interface to terminal -manipulation than, for example, ncurses, by providing a native OCaml interface -instead of bindings to a C library.") - (license license:bsd-3))) + ("ocaml-zed" ,ocaml4.07-zed))))) (define-public ocaml4.07-utop (package