From patchwork Sun Jan 14 13:03:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuval Langer X-Patchwork-Id: 58862 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 A76FB27BBEA; Sun, 14 Jan 2024 13:05:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A288F27BBE2 for ; Sun, 14 Jan 2024 13:05:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rP0Aj-0001az-7k; Sun, 14 Jan 2024 08:05:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rP0Ah-0001Zl-Hl for guix-patches@gnu.org; Sun, 14 Jan 2024 08:05:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rP0Ah-0007gi-5y for guix-patches@gnu.org; Sun, 14 Jan 2024 08:05:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rP0Ag-0003dw-7V for guix-patches@gnu.org; Sun, 14 Jan 2024 08:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68448] Add guile-rsv package definition. Resent-From: Yuval Langer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Jan 2024 13:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68448 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 68448@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170523748613973 (code B ref -1); Sun, 14 Jan 2024 13:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jan 2024 13:04:46 +0000 Received: from localhost ([127.0.0.1]:41882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rP0AP-0003dH-Sq for submit@debbugs.gnu.org; Sun, 14 Jan 2024 08:04:46 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rP0AO-0003d3-2V for submit@debbugs.gnu.org; Sun, 14 Jan 2024 08:04:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rP0AJ-0001Lc-6R for guix-patches@gnu.org; Sun, 14 Jan 2024 08:04:39 -0500 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rP0AH-0007Ny-4l for guix-patches@gnu.org; Sun, 14 Jan 2024 08:04:38 -0500 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2cdae52d355so6639471fa.2 for ; Sun, 14 Jan 2024 05:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705237475; x=1705842275; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=HXjiGId8eFK5E/CGkEAsadkS5H2IN/oU8XQBu7bSqO0=; b=E1tY2LMC/psAlJ1/DKY95EKQaM1yp/rMOEyswDoBmAXfECf3XTg3v8LtgWrz7w8TMU YmRk1UnPkqjvlZZOzSB5LAqMhzdJDEoyrr0Fd93L7Fej6C9fQuk1MmcbHUnHYg1o8rW5 4LyU7TpNQDhEZEaGugBHuDGBUmVctfN26bo65/VJG1VPwqRHA8Q6pteKUhOBg/KWbESg SAzQXv9mKlDFeSpm7gD8lGnNIZlB4af7Mnn56uYj+/V9f/KrC6CmyIf1KSxL/GtxLOV6 sMt3id7UCMVnSCbnyR2RJNr2Ir0cgz7HNlJmnB8jQdCXlhiuoGIjzImaFREcY9dAixaz hdhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705237475; x=1705842275; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HXjiGId8eFK5E/CGkEAsadkS5H2IN/oU8XQBu7bSqO0=; b=E/KaXtR5sQ5xY0n1Yxmer+QTuIqTnaSaBzMdclbJh7RZcIiF3Kk1H71qW/9YFzRJX5 qBBB3twRg/p3Dmfb2/AEGLe+MEVfcl5wtJB62pWRN3biYp8HwKiremlFW691luShSXpm Y+9MCunrDYu+yalrsJ31AOX9glnqrpIXzfdP8SwXhok5BopJHQT+gJTkvMBO0p5I7C3F hjCZXFEfNeAHQqRbSsfl6sfPwTweAaqUVe9yRTdkgBxAJIBNUOJh6sl9C5FMNEypFzid rIJi7N1ZIEpQW7mljC0KGBNTK+Ra5wQrCi2Jg2ovpsXRoTuFEOzvwabxyD+8ScdhqXK5 d0/A== X-Gm-Message-State: AOJu0YybmqmB/5yZTy9tlg0qhx9QWvuGX/EyoL0e3hJLaiPcDsbYe9Aq vacMgxf31MlcPAymmTQ25z7xAjyltSvTQNncC9sEFUhF9lw= X-Google-Smtp-Source: AGHT+IELzL63NFk2d3bwW6eC2kZsbL12m6lpy3ZEFbD/pW8GyTVm2qY/KFPTSoQOlzDSGA7CdJ6w5lvYeIq5wt0iRWg= X-Received: by 2002:a2e:950c:0:b0:2cd:bce0:3034 with SMTP id f12-20020a2e950c000000b002cdbce03034mr232413ljh.32.1705237474820; Sun, 14 Jan 2024 05:04:34 -0800 (PST) MIME-Version: 1.0 From: Yuval Langer Date: Sun, 14 Jan 2024 15:03:57 +0200 Message-ID: Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=yuval.langer@gmail.com; helo=mail-lj1-x232.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, this library implements the Rows of String Vectors file format as specified by Stenway[1], an alternative to Comma Separated Values and similar file formats. It also provides two commands, rsv2scm and scm2rsv, for reading and writing RSV files to and from a list of lists of strings. The main repository is on Codeberg[2]. Many thanks, Yuval Langer. [1]: https://github.com/Stenway/RSV-Specification [2]: https://codeberg.org/kakafarm/guile-rsv From c5361f0bf17b02a385b4782a2435c52519095c7a Mon Sep 17 00:00:00 2001 Message-Id: From: Yuval Langer Date: Sun, 14 Jan 2024 14:54:10 +0200 Subject: [PATCH] Add guile-rsv package definition. --- gnu/packages/guile-xyz.scm | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 77be632cc3..cb7c7f504b 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -5366,6 +5366,69 @@ using a short read-capability.") (home-page "https://codeberg.org/eris/guile-eris") (license license:gpl3+))) +(define-public guile-rsv + (let ((commit-string "ecf0cbd486bb5f73e335e9e04212b0985f3efc35") + (base32-string "0cgnilix4050717xx3b2n45nfvr2hag1asbw92zs6mz6srq7xclq") + (git-repository-url "https://codeberg.org/kakafarm/guile-rsv/")) + (package + (name "guile-rsv") + (version "0.1.0") + (source + (origin + (uri (git-reference + (url git-repository-url) + (commit commit-string))) + (method git-fetch) + (file-name (git-file-name name version)) + (sha256 (base32 base32-string)))) + (inputs + (list guile-3.0 + bash)) + (build-system guile-build-system) + (arguments + (list + #:phases + #~(modify-phases + %standard-phases + (add-after 'install 'link-and-wrap-executable + (lambda _ + (let* ([bin (string-append #$output + "/bin")] ;; bin directory for PATH. + [site-version (target-guile-effective-version)] + [scm (string-append "/share/guile/site/" + site-version)] + [go (string-append "/lib/guile/" + site-version + "/site-ccache")]) + (mkdir-p bin) + (for-each (lambda (command-name) + (let ((source-script (string-append + #$output + scm + "/" + command-name + ".scm")) + (target-command (string-append + bin + "/" + command-name))) + (symlink source-script target-command) + (wrap-program target-command + #:sh (which "bash") + `("GUILE_LOAD_PATH" prefix + (,(string-append #$output scm))) + `("GUILE_LOAD_COMPILED_PATH" prefix + (,(string-append #$output go)))))) + (list "scm2rsv" "rsv2scm")))))))) + (home-page git-repository-url) + (synopsis "R7RS Scheme library for reading and writing RSV data format") + (description "R7RS Scheme library for reading and writing RSV (Rows of String +Values) data format. Specified in +https://github.com/Stenway/RSV-Specification and demonstrated in +https://www.youtube.com/watch?v=tb_70o6ohMA.") + (license (list license:gpl3+ + license:expat-0))))) + (define-public guile-r6rs-protobuf (package (name "guile-r6rs-protobuf") -- 2.30.2