From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qLeuLXUYN2TDVAEASxT56A (envelope-from ) for ; Wed, 12 Apr 2023 22:45:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2KZxLXUYN2TOpQAAauVa8A (envelope-from ) for ; Wed, 12 Apr 2023 22:45:41 +0200 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 6AF2730F4E for ; Wed, 12 Apr 2023 22:45:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmhKy-0000jn-Gt; Wed, 12 Apr 2023 16:45:04 -0400 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 1pmhKw-0000jA-Rh for guix-patches@gnu.org; Wed, 12 Apr 2023 16:45:03 -0400 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 1pmhKw-0002qb-Hl for guix-patches@gnu.org; Wed, 12 Apr 2023 16:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmhKw-0008SS-E0 for guix-patches@gnu.org; Wed, 12 Apr 2023 16:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60286] [v3 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: Wed, 12 Apr 2023 20:45:02 +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.168133226432425 (code B ref 60286); Wed, 12 Apr 2023 20:45:02 +0000 Received: (at 60286) by debbugs.gnu.org; 12 Apr 2023 20:44:24 +0000 Received: from localhost ([127.0.0.1]:41901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmhKJ-0008Qu-Pk for submit@debbugs.gnu.org; Wed, 12 Apr 2023 16:44:24 -0400 Received: from confino.investici.org ([93.190.126.19]:57777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmhKE-0008QV-Ho for 60286@debbugs.gnu.org; Wed, 12 Apr 2023 16:44:20 -0400 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4PxZSf0ZDqz110j; Wed, 12 Apr 2023 20:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1681332258; bh=8aOrcCpW5u3xTTJ+IuZ2uvAzzaOU/6wstW8jFj8VL8k=; h=From:To:Cc:Subject:Date:From; b=FHEIu01iDnmz6k8nlJ+ckL8r21rBnJSj7JYNIfXEKbe1/7TauG8vbfYrcuc9TItz8 xrW/oQoVk3HsyQgm3odoHVnzFC8y4b74oSfaM1Ff5wFG/JjwgZXPR33jV24rO0vTio gPrgcBOY94aQ0BNt0e3NvU6rIY/+cvlg0OAYCuTM= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4PxZSf00gfz110h; Wed, 12 Apr 2023 20:44:17 +0000 (UTC) Date: Wed, 12 Apr 2023 22:44:01 +0200 Message-Id: <20230412204402.14774-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.39.2 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=1681332341; a=rsa-sha256; cv=none; b=Y+bDBxyrBnDwzV8B1ZZIgBKTAdSyjbPYhGNX9Ua78QzLq0XMdXhHbNsp0QXVOr+7NRPfDZ DPzVJ7mmyHna92hqFnwd5PiwVajs/mUzNgrb72O9K5i/sxDwvVDsY5jXYHFi3mygj9D9yN ySs3QAt5oLe3p0h2KG4k0DJGYEbrKOSuoFsJLD3cZlUJtj3qJxicuIwezguSEnxS9o79U+ taWNQVKUOg2QXszn0EzKo+tQJI8mx1ihKawaQERNtu1kDWArTiVoft0jvj0ZVlaGzThZA8 nCprXCvKyAWRF+I0y3htfgXPWB7eLLpNmBLnyhMHbi3bhAu0ki14HT/DbxYbcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=FHEIu01i; 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=1681332341; 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=8aOrcCpW5u3xTTJ+IuZ2uvAzzaOU/6wstW8jFj8VL8k=; b=DRm3TXn+jtaQ44q9XId6K9gv14OQEonYxEelvQciB7tYdB3C0bzMWLHWIxpqi9bYTWybnI /en9NsQAV2pVxez0ksyxR3kF9nracMlLvspVUzOLEbroS+HIkVp8Zu8iEy8iW5xt7550+U COcfJ0m3A1FO/0pwa64SodOdLtVSawnn7cb+uCrr0GD5P+8Tte/yMHUIM2Lae62YlWWWn9 58f5/am4mVSY+7tyaLAtSmvRhoDVKxXN92EdZ4KFziKfeHG6QLCKKXHljn2BQ5sQC5Kzrp 3Mn30vhDkv0OFdP9ZCCUAVoqI+QJR8H+IFzGkRiLMwOZ1ed8OwyBA6GSglFFZw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.22 X-Spam-Score: -2.22 X-Migadu-Queue-Id: 6AF2730F4E Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=FHEIu01i; 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-TUID: 4YEEwPaExypm * 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 8088e8170b..7f6cfc4158 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -556,6 +556,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: dd3e5e71104a2bcbad80e52e062a144ea96b8c6a -- 2.39.2