From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 10 07:37:03 2021 Received: (at submit) by debbugs.gnu.org; 10 Jan 2021 12:37:03 +0000 Received: from localhost ([127.0.0.1]:53330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyZxu-0001Hq-TK for submit@debbugs.gnu.org; Sun, 10 Jan 2021 07:37:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:48628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyYG3-0004HO-7O for submit@debbugs.gnu.org; Sun, 10 Jan 2021 05:47:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyYG3-00033v-0N for guix-patches@gnu.org; Sun, 10 Jan 2021 05:47:39 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyYG0-0000Pz-2x for guix-patches@gnu.org; Sun, 10 Jan 2021 05:47:38 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D052B5C00A5 for ; Sun, 10 Jan 2021 05:47:32 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 10 Jan 2021 05:47:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:subject:message-id:mime-version:content-type; s= fm2; bh=lCP8TiSSdSvlB8xzGhdK86pVZJz73nF9kqUVfLA1hUQ=; b=CqsoLT96 G8OkLFgjbD2wgBMlJ+vQHMZxYu/vqFGOlldMZDBWy/XopwX345AsnYEE40t+8YMT bV3pONtav4fnoSFu6LcPQMoCoLk3gXF82XSs769Pqv1cMlwmBQx3uPEqPP/LL3YB 1Vi8Gx9EO5UnlfkUGNZeDVWOxawVPvAljmMJ2AZQBn0NtfvMbyAt6o6DYhb0AJW4 we5/t5ry2E0zFKslvb0PCgTsUqGoodkrjvj0s0wgsKv5wM31FOraBR4V9LIw2aOb e5+q/RPfyFGOzM9FJHRzdbEwAYjrjUEjKyJl7dxk+JRn1xBmV+6Kwo3zW1yPSdj+ OjsBqibZK8YD/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=lCP8TiSSdSvlB8xzGhdK86pVZJz73 nF9kqUVfLA1hUQ=; b=mqG3cVowEySJ8ijzo3FO6y9ZsDwzxRoqrwoPfU1OEPiS5 zbV8yC/Sh65Ncfye8nWrOshDqwDMAbssUZc8c62ESLHUPKkgMo/EHt5DQpYR0j8Z vperiowytnh3tY0V/BCQMgc3at/Zx6G8kik7gRXiWh2u50OvCWSdrYVX7sKb+ebh 8HSLiEtQ+K6NQt1WIUHHJ8s3h0BcAy5p+/7RX6+MlDqTmG0H59/TuzaBZaaUrm1F l/Txm07oghgQmP5SnLUr4Rcj2Ak6y/gj3syk2f8/s05xlKqQtPKsfDNrkNprZgd5 PbeyeFqZ2SHLrqYnSANrv1MIEtLs5R/8IMXAFRbZA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdegledgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomheprggvtggvphhoghhluhcuoegrvggtvghpohhglhhusehfrghsthhm rghilhdrfhhmqeenucggtffrrghtthgvrhhnpeegheeuteektdekleeuffeiffefffeuie fhvdelkedtteevgeeijeevhfefieegjeenucffohhmrghinhepvghrrhgrthhiqhhuvgdr tghhpdhgihhthhhusgdrtghomhdpthihphgvrhgvgidrohhrghenucfkphepudejiedrge durddvledrudektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrvggtvghpohhglhhusehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from localhost (unknown [176.41.29.180]) by mail.messagingengine.com (Postfix) with ESMTPA id 5557C108005F for ; Sun, 10 Jan 2021 05:47:32 -0500 (EST) Date: Sun, 10 Jan 2021 13:49:15 +0300 From: aecepoglu To: guix-patches@gnu.org Subject: [PATCH] ocaml: Add ocaml-down and ocaml-ocp-index Message-ID: <20210110104915.2t6u4atuikypepfw@minitower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=66.111.4.28; envelope-from=aecepoglu@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 10 Jan 2021 07:37:00 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) --- gnu/packages/ocaml.scm | 132 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 2df16e7cd2..6699eb1050 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -390,6 +390,71 @@ repository-wide uninstallability checks.") ;; with static-linking exception (license license:lgpl2.1+))) +(define-public ocaml-down + (package + (name "ocaml-down") + (version "0.0.3") + (source + (origin + (method url-fetch) + (uri "https://erratique.ch/software/down/releases/down-0.0.3.tbz") + (sha256 + (base32 + "1nz2f5j17frgr2vrslcz9klmi6w9sm2vqwwwpi33ngcm3rgmsrlg")))) + (build-system ocaml-build-system) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure)) + #:build-flags (list "build" + "--lib-dir" (string-append (assoc-ref %outputs "out") + "/lib/ocaml/site-lib")))) + (native-inputs + `(("ocaml-findlib" ,ocaml-findlib) + ("ocamlbuild" ,ocamlbuild) + ("ocaml-topkg" ,ocaml-topkg) + ("opam" ,opam))) + (home-page "https://erratique.ch/software/down") + (synopsis "An OCaml toplevel (REPL) upgrade") + (description + " +Down is an unintrusive user experience upgrade for the `ocaml` +toplevel (REPL). + +Simply load the zero dependency `Down` library in the `ocaml` toplevel +and you get line edition, history, session support and identifier +completion and documentation (courtesy of [`ocp-index`][ocp-index]). + +Add this to your `~/.ocamlinit`: + + #use \"down.top\" + +You may also need to add this to your `~/.ocamlinit` and declare +the environment variable OCAML_TOPLEVEL_PATH + + let () = + try Topdirs.dir_directory (Sys.getenv \"OCAML_TOPLEVEL_PATH\") + with Not_found -> () + +OR + + let () = String.split_on_char ':' (Sys.getenv \"OCAMLPATH\") + |> List.filter (fun x -> Filename.check_suffix x \"/site-lib\") + |> List.map (fun x -> x ^ \"/toplevel\") + (* remove the line below if you don't want to see the text + every time you start the toplevel *) + |> List.map (fun x -> Printf.printf \"adding directory %s\\n\" x; x) + |> List.iter Topdirs.dir_directory;; + + +![tty](doc/tty.png) + +Down is distributed under the ISC license. + + +[ocp-index]: https://github.com/OCamlPro/ocp-index") + (license license:isc))) + (define-public ocaml-opam-file-format (package (name "ocaml-opam-file-format") @@ -2363,6 +2428,73 @@ the JSON data format. It can process JSON text without blocking on IO and without a complete in-memory representation of the data.") (license license:isc))) +(define-public ocaml-ocp-indent + (package + (name "ocaml-ocp-indent") + (version "1.8.1") + (source + (origin + (method url-fetch) + (uri "https://github.com/OCamlPro/ocp-indent/archive/1.8.1.tar.gz") + (sha256 + (base32 + "0rqcvwzpwwzwqvrzg1l37jjiglrk2ijgjg1c7vy3xvc8lk9zyysw")))) + (build-system dune-build-system) + (arguments + `(#:tests? #f + #:build-flags (list "--profile=release"))) + (propagated-inputs + `(("ocaml-cmdliner" ,ocaml-cmdliner))) + (home-page + "http://www.typerex.org/ocp-indent.html") + (synopsis + "A simple tool to indent OCaml programs") + (description + "Ocp-indent is based on an approximate, tolerant OCaml parser and a simple stack +machine ; this is much faster and more reliable than using regexps. Presets and +configuration options available, with the possibility to set them project-wide. +Supports most common syntax extensions, and extensible for others. + +Includes: +- An indentor program, callable from the command-line or from within editors +- Bindings for popular editors +- A library that can be directly used by editor writers, or just for\n fault-tolerant/approximate parsing. +") + (license #f))) + +(define-public ocaml-ocp-index + (package + (name "ocaml-ocp-index") + (version "1.2.1") + (source + (origin + (method url-fetch) + (uri "https://github.com/OCamlPro/ocp-index/archive/1.2.1.tar.gz") + (sha256 + (base32 + "169msb3k1ip5lp79lr62nsk715rwrn53x9jcrnxz4js7c0fv0cyr")))) + (build-system dune-build-system) + (arguments + `(#:package "ocp-index")) + (propagated-inputs + `(("ocaml-ocp-indent" ,ocaml-ocp-indent) + ("ocaml-re" ,ocaml-re) + ("ocaml-cmdliner" ,ocaml-cmdliner))) + (native-inputs `(("ocaml-cppo" ,ocaml-cppo))) + (home-page + "http://www.typerex.org/ocp-index.html") + (synopsis + "Lightweight completion and documentation browsing for OCaml libraries") + (description + "This package includes +* The `ocp-index` library and command-line tool +* `ocp-grep`, a tool that finds uses of a given (qualified) identifier in a source tree +* bindings for emacs and vim (sublime text also [available](https://github.com/whitequark/sublime-ocp-index/)) + +To automatically configure your editors, install this with package `user-setup`. +") + (license #f))) + (define-public ocaml-ocurl (package (name "ocaml-ocurl") -- 2.29.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 10:05:02 2021 Received: (at 45762) by debbugs.gnu.org; 11 Jan 2021 15:05:02 +0000 Received: from localhost ([127.0.0.1]:57776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyykf-0006kp-KJ for submit@debbugs.gnu.org; Mon, 11 Jan 2021 10:05:01 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:36171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyykb-0006kA-95 for 45762@debbugs.gnu.org; Mon, 11 Jan 2021 10:04:58 -0500 Received: by mail-wr1-f50.google.com with SMTP id t16so121358wra.3 for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 07:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=AVBuqUu3BbjHmwdIPtaKn/ckaA6Gg98lp37WFJusP0Q=; b=FQx1HA+BCiBsWC4r8Yn8KVWFxvrmzvcOABjUthiQztOmWbsESDnmK5IiMbVjKrMEgL HcqxzvIW3cHI9loR9DpZFZ39kPvSGvER2fytwkmsvMCvJTwiwCi7LKX81BrAeHBvyct7 4MWcOYdSlv7cuE9UNxzGtws9IuPq9DlHBzwSHOSkWR7QUP/w18alj4R9kYfrkK5JYdq9 WNmz7oEdPbwwd3fcogpnmjipfYguG5xgERHjdkTA+U73ATUNGqY6VJO/1fLfs/gjkT0j W0VfKAnckcEoq/rYJho72eInucvEY+DM57bJwSupS44ccj6f0jFIXKBTwBomw3K1aF73 5V7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=AVBuqUu3BbjHmwdIPtaKn/ckaA6Gg98lp37WFJusP0Q=; b=Pf1DZHqa7rqUMF/aLb42+aPvqyiiyDuenVlLZPSmrLeDgHmkFyhyhqlIAKNRaVAdbH z2yJ3qtqyCKOs6nhbcNkGdU/HvwHHQqbCPWilNQ22URXXzK3l+BshzkEkT4pkw81Oa/m +oCN/xm1fpgOQlptNtxhyj23xSnPMHcEVPybHqvNeFCtgS7cX0JFv1Us2iYqMfGwiDKD Q0URNYmAI5VpLC/KlsPK0xNz2xmNMn3w9UaWHuR+5O+w2KqST3Z5WGNW8ZI5n2/300lj JbFC37R0Jn/R0e6lSYSbwVVu2VkjG5LdpgZqUBXyjSLN4xJFAlL7cUU4nv1xkEx3Gt9l DSGg== X-Gm-Message-State: AOAM530Z6Awax+htYFFdUkP0p0OZuYciMG7b2AaoV98E4GI+pPzXxU4c c+L0v1Ly1aTIRAuhzamyEpJr4ij8aPc= X-Google-Smtp-Source: ABdhPJxu0wpR1zuTulHBG8xSYazsOAj/xXYtgGYfVfuiMqfYwrQavgifyIAxbkLcyNgsqwPPuQNeHA== X-Received: by 2002:a5d:4cd1:: with SMTP id c17mr16807515wrt.49.1610377491440; Mon, 11 Jan 2021 07:04:51 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id x7sm80253wmi.11.2021.01.11.07.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 07:04:51 -0800 (PST) From: zimoun To: aecepoglu , 45762@debbugs.gnu.org Subject: Re: [bug#45762] [PATCH] ocaml: Add ocaml-down and ocaml-ocp-index In-Reply-To: <20210110104915.2t6u4atuikypepfw@minitower> References: <20210110104915.2t6u4atuikypepfw@minitower> Date: Mon, 11 Jan 2021 15:57:45 +0100 Message-ID: <86ft37seqe.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Thanks for the patch. On Sun, 10 Jan 2021 at 13:49, aecepoglu wrote: Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.50 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.50 listed in list.dnswl.org] 2.0 PDS_TONAME_EQ_TOLOCAL_SHORT Short body with To: name matches everything in local email X-Debbugs-Envelope-To: 45762 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi, Thanks for the patch. On Sun, 10 Jan 2021 at 13:49, aecepoglu wrote: > +(define-public ocaml-down > + (package [...] > +(define-public ocaml-ocp-indent > + (package [...] > +(define-public ocaml-ocp-index > + (package Usually, it is one commit per package. Could you spit this patch into 3 patches? All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 10:15:28 2021 Received: (at 45762) by debbugs.gnu.org; 11 Jan 2021 15:15:28 +0000 Received: from localhost ([127.0.0.1]:57811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyyum-00072N-7a for submit@debbugs.gnu.org; Mon, 11 Jan 2021 10:15:28 -0500 Received: from lepiller.eu ([89.234.186.109]:59766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyyuj-00072E-P9 for 45762@debbugs.gnu.org; Mon, 11 Jan 2021 10:15:27 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e3b0aac6; Mon, 11 Jan 2021 15:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=pm+4qZ8AoB00 ktZZFD4syo8BlraljP1+ymoaXteYYbU=; b=O/IMCUI/CthJvwkzniDXkmnt/Ouw JnxsGj8E6WDDhPVI/uaT3QEsxHFonFdBljJxXJKuNrzNLgRsRCsYFNKt2Ptvm60k yfrKZnu83tbxg3AkU8o3OjbPZHWl+OG1C20f4edOwBTEu0hZurYCYfvr+9/rHdzQ ZopXd9oS9dx79/BxVljoW9l8kgcEgwFaEJ6pz5QBjcML/MBkca7DB76u2wWww7D6 vummZF/n6S6N6GiqygZeR5/tOZKn5KxoEYVQcmtRbWPC78ALzG1NaPamk+eo6dtG 89cZzJGCmzBJTN5GaEINK2MRQnvKocz8m+0XqC+eMC9rCDFGNqd7nCwfRA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id a89df6d1 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 11 Jan 2021 15:15:23 +0000 (UTC) Date: Mon, 11 Jan 2021 16:15:14 +0100 From: Julien Lepiller To: aecepoglu Subject: Re: [bug#45762] [PATCH] ocaml: Add ocaml-down and ocaml-ocp-index Message-ID: <20210111161514.18648234@tachikoma.lepiller.eu> In-Reply-To: <20210110104915.2t6u4atuikypepfw@minitower> References: <20210110104915.2t6u4atuikypepfw@minitower> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45762 Cc: 45762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, thanks for the patch! Since it adds three packages, could you make this a series of three patches, where each adds just one package? First, ocp-indent, then ocp-index and finally down. Below are remarks that you should address in these patches too :) For each of them, the title of the patch should be "gnu: Add .", followed by a blank line and "* gnu/packages/ocaml.scm (): New variable.". Le Sun, 10 Jan 2021 13:49:15 +0300, aecepoglu a =C3=A9crit : > --- > gnu/packages/ocaml.scm | 132 > +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 > insertions(+) >=20 > diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm > index 2df16e7cd2..6699eb1050 100644 > --- a/gnu/packages/ocaml.scm > +++ b/gnu/packages/ocaml.scm > @@ -390,6 +390,71 @@ repository-wide uninstallability checks.") > ;; with static-linking exception > (license license:lgpl2.1+))) In the first patch of the series, could you add a copyright line for yourself? It's fine to use a pseudonym if you don't want to use your legal name. > =20 > +(define-public ocaml-down > + (package > + (name "ocaml-down") > + (version "0.0.3") > + (source > + (origin > + (method url-fetch) > + (uri > "https://erratique.ch/software/down/releases/down-0.0.3.tbz") > + (sha256 > + (base32 > + > "1nz2f5j17frgr2vrslcz9klmi6w9sm2vqwwwpi33ngcm3rgmsrlg")))) > + (build-system ocaml-build-system) > + (arguments > + `(#:tests? #f Please add a comment explaining why you skip tests (could be "no tests" if there is no tests) :) > + #:phases (modify-phases %standard-phases > + (delete 'configure)) > + #:build-flags (list "build" > + "--lib-dir" (string-append (assoc-ref > %outputs "out") > + > "/lib/ocaml/site-lib")))) I think the indentation is off here, but I'll fix it, don't worry. > + (native-inputs > + `(("ocaml-findlib" ,ocaml-findlib) > + ("ocamlbuild" ,ocamlbuild) > + ("ocaml-topkg" ,ocaml-topkg) > + ("opam" ,opam))) Same here, there's one space too much below native-inputs. > + (home-page "https://erratique.ch/software/down") > + (synopsis "An OCaml toplevel (REPL) upgrade") Synpsis and description should not start with an article, so make it "OCaml toplevel (REPL) upgrade" :) > + (description > + " > +Down is an unintrusive user experience upgrade for the `ocaml` > +toplevel (REPL).=20 > + > +Simply load the zero dependency `Down` library in the `ocaml` > toplevel +and you get line edition, history, session support and > identifier +completion and documentation (courtesy of > [`ocp-index`][ocp-index]). + > +Add this to your `~/.ocamlinit`: > + > + #use \"down.top\" > + > +You may also need to add this to your `~/.ocamlinit` and declare > +the environment variable OCAML_TOPLEVEL_PATH > + > + let () =3D > + try Topdirs.dir_directory (Sys.getenv \"OCAML_TOPLEVEL_PATH\") > + with Not_found -> () > + > +OR > + =20 > + let () =3D String.split_on_char ':' (Sys.getenv \"OCAMLPATH\") > + |> List.filter (fun x -> Filename.check_suffix x > \"/site-lib\") > + |> List.map (fun x -> x ^ \"/toplevel\") > + (* remove the line below if you don't want to see the > text > + every time you start the toplevel *) > + |> List.map (fun x -> Printf.printf \"adding directory > %s\\n\" x; x) > + |> List.iter Topdirs.dir_directory;; > + > + > +![tty](doc/tty.png) > + > +Down is distributed under the ISC license. > + > + > +[ocp-index]: https://github.com/OCamlPro/ocp-index") > + (license license:isc))) > + I supposed you used the description from the opam importer? It doesn't use the same syntax as guix, so you have to translate them usually. Don't worry too much though if you can't make it, I'll take care of it when applying your patch :) Basically, don't start with a new line, links are not supported, and generally use texinfo syntax. > (define-public ocaml-opam-file-format > (package > (name "ocaml-opam-file-format") > @@ -2363,6 +2428,73 @@ the JSON data format. It can process JSON > text without blocking on IO and without a complete in-memory > representation of the data.") (license license:isc))) > =20 > +(define-public ocaml-ocp-indent > + (package > + (name "ocaml-ocp-indent") > + (version "1.8.1") > + (source > + (origin > + (method url-fetch) > + (uri > "https://github.com/OCamlPro/ocp-indent/archive/1.8.1.tar.gz") > + (sha256 > + (base32 > + > "0rqcvwzpwwzwqvrzg1l37jjiglrk2ijgjg1c7vy3xvc8lk9zyysw")))) > + (build-system dune-build-system) > + (arguments > + `(#:tests? #f Same question, why disable tests? > + #:build-flags (list "--profile=3Drelease"))) Unless there's a specific reason, I think #:package the usual way to do it. > + (propagated-inputs > + `(("ocaml-cmdliner" ,ocaml-cmdliner))) > + (home-page > + "http://www.typerex.org/ocp-indent.html") > + (synopsis > + "A simple tool to indent OCaml programs") Remove the article, so "Simple tool to indent OCaml programs" > + (description > + "Ocp-indent is based on an approximate, tolerant OCaml parser > and a simple stack +machine ; this is much faster and more reliable > than using regexps. Presets and +configuration options available, > with the possibility to set them project-wide. +Supports most common > syntax extensions, and extensible for others. + > +Includes: > +- An indentor program, callable from the command-line or from within > editors +- Bindings for popular editors > +- A library that can be directly used by editor writers, or just > for\n fault-tolerant/approximate parsing. +") Sorry, my client is making a mess out of this. I'll make sure it looks alright, don't worry about it. > + (license #f))) Can you check the license and fill in the field please? #f is not acceptable in Guix :) > + > +(define-public ocaml-ocp-index > + (package > + (name "ocaml-ocp-index") > + (version "1.2.1") > + (source > + (origin > + (method url-fetch) > + (uri > "https://github.com/OCamlPro/ocp-index/archive/1.2.1.tar.gz") > + (sha256 > + (base32 > + > "169msb3k1ip5lp79lr62nsk715rwrn53x9jcrnxz4js7c0fv0cyr")))) > + (build-system dune-build-system) > + (arguments > + `(#:package "ocp-index")) > + (propagated-inputs > + `(("ocaml-ocp-indent" ,ocaml-ocp-indent) > + ("ocaml-re" ,ocaml-re) > + ("ocaml-cmdliner" ,ocaml-cmdliner))) > + (native-inputs `(("ocaml-cppo" ,ocaml-cppo))) > + (home-page > + "http://www.typerex.org/ocp-index.html") > + (synopsis > + "Lightweight completion and documentation browsing for OCaml > libraries") > + (description > + "This package includes > +* The `ocp-index` library and command-line tool > +* `ocp-grep`, a tool that finds uses of a given (qualified) > identifier in a source tree +* bindings for emacs and vim (sublime > text also > [available](https://github.com/whitequark/sublime-ocp-index/)) + +To > automatically configure your editors, install this with package > `user-setup`. +") My client is again making a mess out of this, but I'll fix this anyway, don't worry. > + (license #f))) Same, please specify the license. > + > (define-public ocaml-ocurl > (package > (name "ocaml-ocurl") Overall great contribution! Thank you again! From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 15:53:29 2021 Received: (at 45762) by debbugs.gnu.org; 11 Jan 2021 20:53:29 +0000 Received: from localhost ([127.0.0.1]:58427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz4Bp-0005Is-Vn for submit@debbugs.gnu.org; Mon, 11 Jan 2021 15:53:29 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz4Bn-0005If-Lg for 45762@debbugs.gnu.org; Mon, 11 Jan 2021 15:53:24 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5E8335C0180 for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 15:53:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 11 Jan 2021 15:53:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=nqMS+wF8AjQynimkhoDZb55tIJ +Oys2j2jcvvpYZk1o=; b=XcLsVJrYsxKUQl2fmGhULRqSoGIAENdpv1wr0KDXWx LCsyMien7e02kVzd4JTYsTXGTJNPVvWYzRrRk5Oy1Y4CQyQXXVf+VFZvVAUSQeNf 1BEh/6RFeS8q0m9LPddb4Isgj+jxY/JZAeQix2yulvW5Mixe7P96TOC1u/DlinVn 4EF6kcSZlHFVkENaNSacV7Ot3ECvvYby0/xqoseCjk+1CqRyP4DwfYOknjUheyX8 7A+etCOy0K7TCWgDh91OCiHFfvdRko6H5GapLD95m2/TWtrv4BIvucC485Y9rMfo CTmkfYG88yKGQ2XKj1DL7fsGNVj01OlhRULTf/Dl/vMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=nqMS+w F8AjQynimkhoDZb55tIJ+Oys2j2jcvvpYZk1o=; b=CzMIOgM7LN/JM/DfUMmqma BG/UlY15tsZ9J0KfWWOAAvIOLBsj+pnwcnsqJK6ogS8Dwy5o2T0cLF8UGuSp6xhM qmvxiscxzL7FsitQmKrmlxOfAaZl7TyfJ5WoO7XmSh8diUiNnKhdn0dGK3KpBIn4 7PiuEvwM8kDTOqj+3Nt9gIiVrtjUGGFP0C1fsciLh6/Zp0ZfNi12WMO1m5nyQ3XL gXmAMIIEGZETphR0sGOv84J+bDokLfwUmlkjNOowQQzCvdsK7ZaVhlNoG1rqSEM9 t+fY5igHV9A1DDVP9cLvLrltlzBvac0lIcDMTB3GZ+zQEjWutCnb7Wor2i9ww/tQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehuddgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfesthekre dttddtudenucfhrhhomheprggvtggvphhoghhluhcuoegrvggtvghpohhglhhusehfrghs thhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeegudeilefgleeutdfgtdefleejvd elleehleffteeggfegffetuefggfdvjeehvdenucffohhmrghinhepghhithhhuhgsrdgt ohhmpdhthihpvghrvgigrdhorhhgnecukfhppedujeeirdeguddrvdelrddukedtnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggvtggvphho ghhluhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from localhost (unknown [176.41.29.180]) by mail.messagingengine.com (Postfix) with ESMTPA id E00D7240064 for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 15:53:16 -0500 (EST) Date: Mon, 11 Jan 2021 23:55:04 +0300 From: aecepoglu To: 45762@debbugs.gnu.org Subject: [PATCH 1/3] ocaml: Add ocaml-ocp-indent * gnu/packages/ocaml.scm (ocaml-ocp-indent): New variable. Message-ID: <20210111205504.aoiqpipkjnxhzbpp@minitower> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45762 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --- gnu/packages/ocaml.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 2df16e7cd2..d2e2f03f3a 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2020 Simon Tournier ;;; Copyright © 2020 divoplade ;;; Copyright © 2020 pukkamustard +;;; Copyright © 2021 aecepoglu ;;; ;;; This file is part of GNU Guix. ;;; @@ -2363,6 +2364,42 @@ the JSON data format. It can process JSON text without blocking on IO and without a complete in-memory representation of the data.") (license license:isc))) +(define-public ocaml-ocp-indent + (package + (name "ocaml-ocp-indent") + (version "1.8.1") + (source + (origin + (method url-fetch) + (uri "https://github.com/OCamlPro/ocp-indent/archive/1.8.1.tar.gz") + (sha256 + (base32 + "0rqcvwzpwwzwqvrzg1l37jjiglrk2ijgjg1c7vy3xvc8lk9zyysw")))) + (build-system dune-build-system) + (arguments + `(#:tests? #f + #:build-flags (list "--profile=release"))) + (propagated-inputs + `(("ocaml-cmdliner" ,ocaml-cmdliner))) + (home-page + "http://www.typerex.org/ocp-indent.html") + (synopsis + "Tool to indent OCaml programs") + (description + "Ocp-indent is based on an approximate, tolerant OCaml parser + and a simple stack machine. +Presets and configuration options available, + with the possibility to set them project-wide. +Supports most common syntax extensions, and extensible for others. + +Includes: + +- An indentor program, callable from the command-line or from within editors +- Bindings for popular editors +- A library that can be directly used by editor writers, + or just for fault-tolerant/approximate parsing.") + (license license:lgpl2.1))) + (define-public ocaml-ocurl (package (name "ocaml-ocurl") -- 2.29.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 15:53:57 2021 Received: (at 45762) by debbugs.gnu.org; 11 Jan 2021 20:53:57 +0000 Received: from localhost ([127.0.0.1]:58432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz4CK-0005Jd-OE for submit@debbugs.gnu.org; Mon, 11 Jan 2021 15:53:56 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:43885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz4CG-0005JM-UY for 45762@debbugs.gnu.org; Mon, 11 Jan 2021 15:53:55 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 112C32440 for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 15:53:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 11 Jan 2021 15:53:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:subject:message-id:mime-version:content-type; s= fm2; bh=wbcz3Fn2M3Sk3ODxyhJhqX3eIHWvTFBARje3OurS4/s=; b=WyOvBMX4 LSIMNCf0cvPDyj53dgFK0RHx55lq+G9jjxa5WBgdH/k/NhtU9HOTkaAbnZz7Bgb9 0vnw0QhyFrWkTQE2VWpcIS9Z9pobsk7s0zhwZ2abEZ5HTh0QnRCxnjWIBUy3MuJZ psqx08ytYL+m5eWZ791+cbTsf2FKkfF95pgvKfvAmt4gzYUu11ZblNZ9BbaUbTXc keHA9euhpoP0cAsPF6TX09u/DqA13jF7anfvXgYoixosoBdq2IPmDX0yfi9TWxhL 7nbGz4BeLLeJA/44raYWxyhdqr4jBmJ7jkv+gFYWtMzJba+IqT9r5x7H5PRwyPwQ CtUqIHg85kwziQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=wbcz3Fn2M3Sk3ODxyhJhqX3eIHWvT FBARje3OurS4/s=; b=byz0bAXiRpemZFZnccItlgg8YJkof2UTyF6HzDugWsyc+ JTgqaPSOsUrTYG8QFBIhQomgYjrR0WsBZdkGNZ0S2Kr4HQqGyfGQVbMupL8+yKhf +VDdustsSPmzuAcB2dwNdVqCdi9SN8P1S5uhS72N0dNnq5YDoEqN93AgiGPkWuUP RlIKiJ8luGQnJN1cC/lKr9D0++MZzfz6X8BHPurx9V+wYmigR/vF+X63uD2dZ6cX kFK5v0tKIIAb3gBX86YA6Cvr+1gtJmq2VqeY8XPZyhaoGLbLYvAklQBAU5/LIOR5 CjxZBHvtFpVKvm8wxlbP2g5WlZztZNZryGfOfQDkw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehuddgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertd dttddvnecuhfhrohhmpegrvggtvghpohhglhhuuceorggvtggvphhoghhluhesfhgrshht mhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepgfffieeijeevtdektdegfeefffeuge efiefhveejledtkeeuieeitedthfdvjedvnecuffhomhgrihhnpehgihhthhhusgdrtgho mhdpthihphgvrhgvgidrohhrghenucfkphepudejiedrgedurddvledrudektdenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrvggtvghpohhg lhhusehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from localhost (unknown [176.41.29.180]) by mail.messagingengine.com (Postfix) with ESMTPA id 66F3B1080063 for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 15:53:46 -0500 (EST) Date: Mon, 11 Jan 2021 23:55:33 +0300 From: aecepoglu To: 45762@debbugs.gnu.org Subject: [PATCH 2/3] ocaml: Add ocaml-ocp-index * gnu/packages/ocaml.scm (ocaml-ocp-index): New variable. Message-ID: <20210111205533.vy5aween3h2d55qk@minitower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45762 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --- gnu/packages/ocaml.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index d2e2f03f3a..00978fa138 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -2400,6 +2400,37 @@ Includes: or just for fault-tolerant/approximate parsing.") (license license:lgpl2.1))) +(define-public ocaml-ocp-index + (package + (name "ocaml-ocp-index") + (version "1.2.1") + (source + (origin + (method url-fetch) + (uri "https://github.com/OCamlPro/ocp-index/archive/1.2.1.tar.gz") + (sha256 + (base32 + "169msb3k1ip5lp79lr62nsk715rwrn53x9jcrnxz4js7c0fv0cyr")))) + (build-system dune-build-system) + (arguments + `(#:package "ocp-index")) + (propagated-inputs + `(("ocaml-ocp-indent" ,ocaml-ocp-indent) + ("ocaml-re" ,ocaml-re) + ("ocaml-cmdliner" ,ocaml-cmdliner))) + (native-inputs + `(("ocaml-cppo" ,ocaml-cppo))) + (home-page + "http://www.typerex.org/ocp-index.html") + (synopsis + "Lightweight completion and documentation browsing for OCaml libraries") + (description + "This package includes only the `ocp-index` library +and command-line tool.") + (license license:gpl3))) ; all files in libs/ are GNU lgpl2.1 + ; for static linking clause 6 of LGPL is lifted + ; all other files under GNU gpl3 + (define-public ocaml-ocurl (package (name "ocaml-ocurl") -- 2.29.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 11 15:54:31 2021 Received: (at 45762) by debbugs.gnu.org; 11 Jan 2021 20:54:31 +0000 Received: from localhost ([127.0.0.1]:58439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz4Ct-0005Kx-1Z for submit@debbugs.gnu.org; Mon, 11 Jan 2021 15:54:31 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:36185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz4Cr-0005Kj-AS for 45762@debbugs.gnu.org; Mon, 11 Jan 2021 15:54:29 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9A9A4237D for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 15:54:23 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 11 Jan 2021 15:54:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:subject:message-id:mime-version:content-type; s= fm2; bh=WD+6/nd3zPwHbjmCldBGettYbHA6m0Zvsmzbk+s7910=; b=ArNptqRf TyZ4i3awPJCKHADx0Ts60fPHaNbG//bLkmEWTYp+a3Mepz9jU0yVI78tO7pVgzvw FXZdqon99ImA/a3E62K8GdFVDV5maIJ331S4X+dR2P86Rk/YDg+EmDnSRt8yrXmr Ay2iF1JHcgxo08M3loiFtOS2rMvSG9ATQETwh3kYYReWMJYIgaxTJhqPmXlG/eSF rwxHYEaHH7yWaNkDR6o/vUU3fR2gilw8BMy0gVbrTAN27q8Uw2GRoONd0um0NwEv yfwJNEUPvzJOiTXk33dfP2DUtG7/HRxTsYixCQmxHKgln4ZZJcytVASsth7b5LUR BjugkyLJR1QWrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=WD+6/nd3zPwHbjmCldBGettYbHA6m 0Zvsmzbk+s7910=; b=BTe21tjKa0BlsN+X2/B6hk9OuRGqBQU7NXoVSRSzI25OG +q1WpfYSYL5pP+tUNS2GcXDrk1sQwUcQAAXDUFzjqc44Yp65siDKsWHyc37LSIFw fG3U2klGqJA7lWE0Jg2OQXcntGBwoBEh3K5W3Xoe/SMFAwmVd6baxe5+Nu8aR6YI bxDpZK9+I1PtKbowKv8FeQbOQ3EZAYNL7JnJLf4mztu/Zf4Vnc5yXrYumJcwlEZ1 18vTuEO2OcSj6/DMlQ5NTd/pO04+oSuqhL7T0NGIVlxmwXxMYrHNS0FP0YLoDjyf IR1pBBk87WEqJZuecNOYGOkKDJaGW4PcuDeTNW/LQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdehuddgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertd dttddvnecuhfhrohhmpegrvggtvghpohhglhhuuceorggvtggvphhoghhluhesfhgrshht mhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepvdeltdffiefhjefgveefffejhfevie dvuddthfevgeekteelkeejgfehkeekhfdtnecuffhomhgrihhnpegvrhhrrghtihhquhgv rdgthhenucfkphepudejiedrgedurddvledrudektdenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrvggtvghpohhglhhusehfrghsthhmrghi lhdrfhhm X-ME-Proxy: Received: from localhost (unknown [176.41.29.180]) by mail.messagingengine.com (Postfix) with ESMTPA id D991C24005A for <45762@debbugs.gnu.org>; Mon, 11 Jan 2021 15:54:22 -0500 (EST) Date: Mon, 11 Jan 2021 23:56:10 +0300 From: aecepoglu To: 45762@debbugs.gnu.org Subject: [PATCH 3/3] ocaml: Add ocaml-down * gnu/packages/ocaml.scm (ocaml-down): New variable. Message-ID: <20210111205610.vnimx34apdkdqwvd@minitower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45762 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --- gnu/packages/ocaml.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 00978fa138..300bfceadd 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -391,6 +391,62 @@ repository-wide uninstallability checks.") ;; with static-linking exception (license license:lgpl2.1+))) +(define-public ocaml-down + (package + (name "ocaml-down") + (version "0.0.3") + (source + (origin + (method url-fetch) + (uri "https://erratique.ch/software/down/releases/down-0.0.3.tbz") + (sha256 + (base32 + "1nz2f5j17frgr2vrslcz9klmi6w9sm2vqwwwpi33ngcm3rgmsrlg")))) + (build-system ocaml-build-system) + (arguments + `(#:tests? #f ;no tests + #:phases (modify-phases %standard-phases + (delete 'configure)) + #:build-flags (list "build" + "--lib-dir" (string-append (assoc-ref %outputs "out") + "/lib/ocaml/site-lib")))) + (native-inputs + `(("ocaml-findlib" ,ocaml-findlib) + ("ocamlbuild" ,ocamlbuild) + ("ocaml-topkg" ,ocaml-topkg) + ("opam" ,opam))) + (home-page "https://erratique.ch/software/down") + (synopsis "OCaml toplevel (REPL) upgrade") + (description + "Down is an unintrusive user experience upgrade for the `ocaml` +toplevel (REPL). + +Simply load the zero dependency `down` library in the `ocaml` toplevel +and you get line edition, history, session support and identifier +completion and documentation `ocp-index`. + +Add this to your `~/.ocamlinit`: + + #use \"down.top\" + +You may also need to add this to your `~/.ocamlinit` and declare +the environment variable OCAML_TOPLEVEL_PATH + + let () = + try Topdirs.dir_directory (Sys.getenv \"OCAML_TOPLEVEL_PATH\") + with Not_found -> () + +OR + + let () = String.split_on_char ':' (Sys.getenv \"OCAMLPATH\") + |> List.filter (fun x -> Filename.check_suffix x \"/site-lib\") + |> List.map (fun x -> x ^ \"/toplevel\") + (* remove the line below if you don't want to see the text + every time you start the toplevel *) + |> List.map (fun x -> Printf.printf \"adding directory %s\\n\" x; x) + |> List.iter Topdirs.dir_directory;;") + (license license:isc))) + (define-public ocaml-opam-file-format (package (name "ocaml-opam-file-format") -- 2.29.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 12 09:10:17 2021 Received: (at 45762-done) by debbugs.gnu.org; 12 Jan 2021 14:10:18 +0000 Received: from localhost ([127.0.0.1]:59595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzKNF-0002Fu-Lw for submit@debbugs.gnu.org; Tue, 12 Jan 2021 09:10:17 -0500 Received: from lepiller.eu ([89.234.186.109]:59900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzKNC-0002Fh-Ck for 45762-done@debbugs.gnu.org; Tue, 12 Jan 2021 09:10:15 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 1c734ded; Tue, 12 Jan 2021 14:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=wQ+TXoz8QgeM btjI/Zlkl/DPsztAg1uwiKwzkMXNnSk=; b=CCEws7vx1QcE89gOLi6QFI5qjZfl jOQ9GL01kZvah38sTl6vqfiiNGMwqeH3tEWGKz4Hb+ekXTr3HOhtyoQeueumNMeB YYMVsx8Ffjjzb7WJHtRYp8jmpl53QiiJy+ouBdqOvUt14nQgT95Bc7k/5bTYLmv1 FKXfSDY9DrEUkHOft7BRmjGUgqLfcGR6vbSHSc1uwPqjBk22VEUFLj8rcxbJVT9U jdrArVG4rGydNIxNlgyj2InFr9j3xa1/KyPuJEhn1tLbgBkq77QqLl4HZ6ZrUXTp vAftuaoIFtfhg86TZaNl6I1JB23qgQtnndbxxqTyK4iEOJyJ9sw5Ei1EQQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 54c98e8e (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 12 Jan 2021 14:10:06 +0000 (UTC) Date: Tue, 12 Jan 2021 15:10:01 +0100 From: Julien Lepiller To: aecepoglu Subject: Re: [bug#45762] [PATCH] ocaml: Add ocaml-down and ocaml-ocp-index Message-ID: <20210112151001.35780f3e@tachikoma.lepiller.eu> In-Reply-To: <20210110104915.2t6u4atuikypepfw@minitower> References: <20210110104915.2t6u4atuikypepfw@minitower> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45762-done Cc: 45762-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pushed as b6529e189688ac8bc17c11cf24304fc554f5cb9b to e3b71ee6dcb87452192fb4f5df9eeea31f1c1cfd. Thank you! I changed the first two packages to use the git checkout instead of the generated archive by github, because this archive is unstable: sometimes it gets regenerated and has a different hash. git commits don't do that. I also updated ocp-indent to the latest version, and managed to get the tests to run with the #:test-target argument. I also fixed the home page (http -> https). For the rest, I fixed the description by replacing markdown with texinfo decoration `...` -> @code, @file, @command, ... Thanks again for your contribution! If you run "guix pull" you should be able to install ocaml-down :) Lastly, if you use the git:send-email package, you should be able to use the git send-email command, which should make sure to properly send the patch description outside of the subject. Also, make sure to run "guix lint" on the packages you submit next time, as it sometimes have good suggestions to help improve the quality of your packages :) From unknown Sat Sep 06 14:24:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Feb 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator