From patchwork Tue Oct 5 09:47:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 33617 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 6108127BBE3; Tue, 5 Oct 2021 10:54:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 1FB7527BBE1 for ; Tue, 5 Oct 2021 10:54:33 +0100 (BST) Received: from localhost ([::1]:36640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXh9c-0005xh-6W for patchwork@mira.cbaines.net; Tue, 05 Oct 2021 05:54:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXh8A-0004EP-Hg for guix-patches@gnu.org; Tue, 05 Oct 2021 05:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXh8A-0005uq-9a for guix-patches@gnu.org; Tue, 05 Oct 2021 05:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXh8A-0008Kz-8b for guix-patches@gnu.org; Tue, 05 Oct 2021 05:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51028] [PATCH 6/7] gnu: Add julia-configurations. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Oct 2021 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51028 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51028@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 51028-submit@debbugs.gnu.org id=B51028.163342753031973 (code B ref 51028); Tue, 05 Oct 2021 09:53:02 +0000 Received: (at 51028) by debbugs.gnu.org; 5 Oct 2021 09:52:10 +0000 Received: from localhost ([127.0.0.1]:39134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXh7J-0008Jd-Nl for submit@debbugs.gnu.org; Tue, 05 Oct 2021 05:52:09 -0400 Received: from flashner.co.il ([178.62.234.194]:36536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXh7I-0008JE-BK for 51028@debbugs.gnu.org; Tue, 05 Oct 2021 05:52:08 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 8502540417; Tue, 5 Oct 2021 09:52:02 +0000 (UTC) From: Efraim Flashner Date: Tue, 5 Oct 2021 12:47:35 +0300 Message-Id: <95ebe917da1dac82eaa43123eb4d0c6817d4acb6.1633411929.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: 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/julia-xyz.scm (julia-configurations): New variable. --- gnu/packages/julia-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index 895e43bb14..ee0e1fb74a 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -729,6 +729,49 @@ (define-public julia-compat way.") (license license:expat))) +(define-public julia-configurations + (package + (name "julia-configurations") + (version "0.16.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Roger-luo/Configurations.jl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1b23p0zk8dx2sf01cnw177mqci7qd81b9s32ixz9clsh0r0icl1b")))) + (build-system julia-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + (substitute* "test/runtests.jl" + (("option.toml") "test/option.toml")) + #t)) + (add-after 'unpack 'dont-use-exproniconlite + (lambda _ + (substitute* '("Project.toml" + "src/Configurations.jl" + "test/runtests.jl") + (("ExproniconLite") "Expronicon")) + (substitute* "Project.toml" + (("55351af7-c7e9-48d6-89ff-24e801d99491") + "6b7a57c9-7cc1-4fdf-b7f5-e857abae3636")) + #t))))) + (propagated-inputs + `(("julia-crayons" ,julia-crayons) + ("julia-expronicon" ,julia-expronicon) + ("julia-orderedcollections" ,julia-orderedcollections))) + (home-page "https://configurations.rogerluo.dev/stable/") + (synopsis "Options and configurations in Julia") + (description "@code{Configurations.jl} provides a macro @code{@@option} to +let you define @code{structs} to represent options/configurations, and serialize +between different option/configuration file formats such as @code{TOML}.") + (license license:expat))) + (define-public julia-constructionbase (package (name "julia-constructionbase")