From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EKrnA/U6smOG5QAAbAwnHQ (envelope-from ) for ; Mon, 02 Jan 2023 03:01:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yKrUA/U6smPsDwAA9RJhRA (envelope-from ) for ; Mon, 02 Jan 2023 03:01:25 +0100 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 92DE1B229 for ; Mon, 2 Jan 2023 03:01:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCA8O-0003vb-PQ; Sun, 01 Jan 2023 21:01:04 -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 1pCA8M-0003vH-S5 for guix-patches@gnu.org; Sun, 01 Jan 2023 21:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCA8M-0002Tf-EV for guix-patches@gnu.org; Sun, 01 Jan 2023 21:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pCA8M-0000m5-1A for guix-patches@gnu.org; Sun, 01 Jan 2023 21:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60286] [PATCHv2 1/2] gnu: Add guile-scheme-json-rpc. References: <15ea32667d93bab6b4a785253538cdb5@autistici.org> In-Reply-To: <15ea32667d93bab6b4a785253538cdb5@autistici.org> Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 Jan 2023 02:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60286 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60286@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 60286-submit@debbugs.gnu.org id=B60286.16726248522948 (code B ref 60286); Mon, 02 Jan 2023 02:01:01 +0000 Received: (at 60286) by debbugs.gnu.org; 2 Jan 2023 02:00:52 +0000 Received: from localhost ([127.0.0.1]:42143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCA8C-0000lT-4e for submit@debbugs.gnu.org; Sun, 01 Jan 2023 21:00:52 -0500 Received: from confino.investici.org ([93.190.126.19]:36207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pCA89-0000lG-P0 for 60286@debbugs.gnu.org; Sun, 01 Jan 2023 21:00:50 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4NlfGS5jKWz10vd; Mon, 2 Jan 2023 02:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1672624848; bh=FAHmrrDYCDcPhSNDtjhvyANHBuO8o07/wRaqDfNNcAM=; h=From:To:Cc:Subject:Date:From; b=e7lDNTMSh/0NwHtwtspH/qKYhu47IW9T+1/VgR4NLVjQ03OxTI5s+7TTDoRi1AGTT M29J65i+JC9Xb7/As3pIp7DuN0HRW6WpDBiRTQoeRXxoAw/c6MBVMjCAWgqHlDJEQb V4lO8wn+oBmJyhZnbv4QJqqpXW32PvaFav8hvQ+A= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4NlfGS5Bdtz10vS; Mon, 2 Jan 2023 02:00:48 +0000 (UTC) Date: Mon, 2 Jan 2023 03:00:23 +0100 Message-Id: <20230102020024.27498-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672624884; a=rsa-sha256; cv=none; b=nIA69v9htUPYNBDgJzk5xwzLh1YQYNIDrRufkNT7I37F13ja7GFyiWcBy1guXtorvYYM0J R5iZ/iYCRv66OgFTNMhPSjWnLFSieIi/BSn7IP1hmL/tMZnfq8Xcf/KV6ukWiJ6tsqX6Q6 rfzrTpDvfjOFpR7xxdURcCbjx1t6lIr3qsZ4JQKvi6jpT4xOzCTaBeuQZzr3TSziOWiV5R A62eFZerikS7V/mDauLQ8DlZRTLEVTdms1J5U7aeDwEh5cGJtrtdzZt/cin3lgHRnh/v5d 7vAuzIdSmJZyRYe4jLCJZTOi9CQZcNX3i98brdHEC0HWuLrn/0ipSY45bnvnHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=e7lDNTMS; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672624884; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=FAHmrrDYCDcPhSNDtjhvyANHBuO8o07/wRaqDfNNcAM=; b=W6AbzVeAWBq46BsVv396w3i/k3VQzXSNoi3oVoBNpAofgcy/al+HBRC4Qu9gSwv+0nvjWD yDtYs/UjytniSrahXB1pm6yM+XNT8ki0SFxEi69LES04Lf3R4WAeIHMefJeLFNdOW/Wahg W5DgADkeGgJ62Cat1iAUhrNwsKHgKNrjiWrJqEwrAqga2Ji58+3MBmAcjddkZIo9BktqUh LDlNmmjaiEIK8XsTDUi637PEN95sZ6i02qkplE/mOWENDW5+KaNQUP7xyRqunrgX6un99L 55lOnCoGe39KYpBokcRNjpNQOFMmBfLpuaYXldV52DmfPcAygYWQjdLlhAjCbA== X-Spam-Score: -3.55 X-Migadu-Queue-Id: 92DE1B229 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=e7lDNTMS; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.55 X-TUID: MJ6m+H9g352x * gnu/packages/scheme-xyz.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/scheme-xyz.scm | 68 +++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 gnu/packages/scheme-xyz.scm diff --git a/gnu/local.mk b/gnu/local.mk index f0b1b3fd15..5a285eb629 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -548,6 +548,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/sawfish.scm \ %D%/packages/scanner.scm \ %D%/packages/scheme.scm \ + %D%/packages/scheme-xyz.scm \ %D%/packages/spreadsheet.scm \ %D%/packages/screen.scm \ %D%/packages/scribus.scm \ diff --git a/gnu/packages/scheme-xyz.scm b/gnu/packages/scheme-xyz.scm new file mode 100644 index 0000000000..91ba1e7f5b --- /dev/null +++ b/gnu/packages/scheme-xyz.scm @@ -0,0 +1,68 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Giacomo Leidi +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages scheme-xyz) + #:use-module (gnu packages autotools) + #:use-module (gnu packages guile) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages texinfo) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix build-system gnu)) + +(define (scheme-json-rpc-origin name version hash) + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/rgherdt/scheme-json-rpc.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + hash)))) + +(define-public guile-scheme-json-rpc + (package + (name "guile-scheme-json-rpc") + (version "0.2.11") + (source + (scheme-json-rpc-origin + name + version + "0w4m8xx8yyj0rv0q57mjr8ja87l7yikscj33i3ck26wg7230ppa5")) + (build-system gnu-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'move-to-guile-directory + (lambda _ + (chdir "./guile")))))) + (native-inputs (list pkg-config)) + (inputs (list guile-3.0-latest)) + (synopsis "Implementation of the JSON-RPC for Scheme") + (description + "@code{scheme-json-rpc} allows calling procedures +on remote servers by exchanging JSON objects. It implements the +@url{jsonrpc specifications, https://www.jsonrpc.org/specification}. +The low-level API strives to be R7RS compliant, relying on some SRFI's +when needed. So far it was only tested under CHICKEN 5 and Guile 3. + +This package delivers Guile's bytecode for @code{scheme-json-rpc}.") + (home-page "https://codeberg.org/rgherdt/scheme-json-rpc") + (license license:expat))) base-commit: d7a9d72bb02a2a3b1a99183655bf878547116032 -- 2.38.1