From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wFd4AfEjhmPK9wAAbAwnHQ (envelope-from ) for ; Tue, 29 Nov 2022 16:23:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sKd5AfEjhmMfdAEA9RJhRA (envelope-from ) for ; Tue, 29 Nov 2022 16:23:29 +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 AFF95150BD for ; Tue, 29 Nov 2022 16:23:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p02Ru-0004IQ-Bm; Tue, 29 Nov 2022 10:23:06 -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 1p02Rs-0004I5-27 for guix-patches@gnu.org; Tue, 29 Nov 2022 10:23:04 -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 1p02Rq-00008H-NM for guix-patches@gnu.org; Tue, 29 Nov 2022 10:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p02Rq-0003aw-9l for guix-patches@gnu.org; Tue, 29 Nov 2022 10:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59681] [PATCH 1/2] gnu: loko: Use G-expressions. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Nov 2022 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59681 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59681@debbugs.gnu.org Cc: Zhu Zihao X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166973532513778 (code B ref -1); Tue, 29 Nov 2022 15:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 15:22:05 +0000 Received: from localhost ([127.0.0.1]:54720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p02Qv-0003aA-9A for submit@debbugs.gnu.org; Tue, 29 Nov 2022 10:22:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:59030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p02Qr-0003Zn-MZ for submit@debbugs.gnu.org; Tue, 29 Nov 2022 10:22:03 -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 1p02Qq-0004CG-JP for guix-patches@gnu.org; Tue, 29 Nov 2022 10:22:01 -0500 Received: from mail-m974.mail.163.com ([123.126.97.4]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p02Qm-0008TA-BE for guix-patches@gnu.org; Tue, 29 Nov 2022 10:22:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=V6FUi GOoD9YlSChmTx75UzKW8SjOIekfgQVUzDuhJpc=; b=nUp/b5GmrEa2Sd4yjpct8 QFeG7j5/muYzztx+C6Lyz0Pq8V5RgkatCMQzI4oaKBv2B/ZQWTdJn2tN667WDDf1 oE/TEJrCMnwi4pFXEjj/ZGvQHUXeHPnxcIc55J9nZnSOt09JiJmMHvFzpccCtKwX NnPZM+D9tEpz3ohPKqr6Xw= Received: from localhost.localdomain (unknown [163.125.249.242]) by smtp4 (Coremail) with SMTP id HNxpCgDXF3iCI4ZjVIBntw--.59865S2; Tue, 29 Nov 2022 23:21:43 +0800 (CST) From: Zhu Zihao Date: Tue, 29 Nov 2022 23:21:33 +0800 Message-Id: <20221129152134.8917-1-all_but_last@163.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: HNxpCgDXF3iCI4ZjVIBntw--.59865S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxCF45GF4DAF1xAry7ZFyDGFg_yoW5Zr4fpa 4Sk3Z3Kr4rCryrAan3Xw48ur15WF4ktF45Cws3Cw40yws0vFy0gr17KrZ5ZFyxt34xZ347 GwsrXrW5WrWUuFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUv9akUUUUU= X-Originating-IP: [163.125.249.242] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBoQjIr2I0V8eYqgAAs6 Received-SPF: pass client-ip=123.126.97.4; envelope-from=all_but_last@163.com; helo=mail-m974.mail.163.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 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669735408; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=V6FUiGOoD9YlSChmTx75UzKW8SjOIekfgQVUzDuhJpc=; b=YQR2QakyJRiq/pdOnhPZb5pfGUp+ZK3prz6JVbvFKVBArylYlrMIXwLWcg1ZwJZKUmJphE wyoBmKvVRoagpDx0rK3srVooZFD5iCRbDCpE6cbNU9KKWaV02P9J+kClmOnzXcvU5AK7b+ KekDLSNWWfnQjRkLYkgZZmmf8+madRNUfHnou6H+E0xrQpUE0lSZ7qGaEmO4RQCd/ZOqYp EKoyyjgdJaGsZWRW7SLB8xM1LnmYrnB7ooj1LpSjSXxClWMsxWvlCH0Ab2DR9TQ5VxMlUL Y00JO3RIsHwL76C0QJuI/h8lwr6xED6Rq6c0FjGjrRwpDRzIW6ArDN6+dFM0EA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669735408; a=rsa-sha256; cv=none; b=WQ+1WxzmbOVqTBYPlT9VqNiYdR/HIM8P0+RKeoatGv5oQlQAZuCq7Ti+bEuWAfZNOkUGMg 6mnobCsF6cGzjsIvjceRcOteeSsGkgL22Dp2ZXplvhs4LD9Pw0iR8U1aXSGqI1/kmB3k6G jTWSyhgE8cLml64OamFd2sue540N6JICr4yBdASDj5eIrsKumxm5H7sV0z8hItMWUV8vku ELKb6CpFlRmRpFBoDnrRvK/RCrbUBaK41eZrgsCaRe9k5yJws12PWE0lcpsE606NKsGWwL NeC8PqOyKJ9ft92TtUO+H3N0sPB4YRQBpizaroNFSTFCtswKXQ53Kr+bo7A1PA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b="nUp/b5Gm"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); 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" X-Migadu-Spam-Score: 12.14 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b="nUp/b5Gm"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); 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" X-Migadu-Queue-Id: AFF95150BD X-Spam-Score: 12.14 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-TUID: 5FHkJKQrXXQp * gnu/packages/loko.scm (loko)[arguments]: Use G-expressions. <#:phases>: In 'akku-fixes', replace "(assoc-ref inputs name)" with "this-package-native-input". [native-inputs]: Use label-less style. --- gnu/packages/loko.scm | 72 +++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/gnu/packages/loko.scm b/gnu/packages/loko.scm index 449c62f1f0..cb189acb87 100644 --- a/gnu/packages/loko.scm +++ b/gnu/packages/loko.scm @@ -41,41 +41,45 @@ (define-public loko-scheme (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments - `(;; r7rs tests are a work in progress as of 0.7.0. - #:tests? #f - #:strip-binaries? #f - #:make-flags - (let ((out (assoc-ref %outputs "out"))) - (list - (string-append "PREFIX=" out) - (string-append "GDB_AUTOLOAD_PATH=" out "/share/gdb/auto-load"))) - #:phases - (modify-phases %standard-phases - (delete 'configure) - (add-before 'build 'akku-fixes - (lambda* (#:key inputs #:allow-other-keys) - (delete-file "Akku.lock") - (substitute* "Akku.manifest" - (("\\(depends.*") "(depends)")) - (invoke "akku" "install") - (let ((dest "./.akku/lib/") - (source "/share/guile/site/3.0/")) - (for-each - (lambda (name) - ;; Symlink the scheme libraries so that Akku can find them - (symlink (string-append (assoc-ref inputs name) source name) - (string-append dest name))) - '("struct" "laesare" "pfds" "machine-code"))) - (substitute* ".akku/env" - (("/bin/sh") (which "sh"))) - #t))))) + (list + ;; r7rs tests are a work in progress as of 0.7.0. + #:tests? #f + #:strip-binaries? #f + #:make-flags + #~(list + (string-append "PREFIX=" #$output) + (string-append "GDB_AUTOLOAD_PATH=" #$output "/share/gdb/auto-load")) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'akku-fixes + (lambda _ + (delete-file "Akku.lock") + (substitute* "Akku.manifest" + (("\\(depends.*") "(depends)")) + (invoke "akku" "install") + (let ((dest "./.akku/lib/") + (source "/share/guile/site/3.0/")) + (for-each + (lambda (name prefix) + ;; Symlink the scheme libraries so that Akku can find them + (symlink (string-append prefix source name) + (string-append dest name))) + '("struct" "laesare" "pfds" "machine-code") + (list #$(this-package-native-input "guile-struct-pack") + #$(this-package-native-input "guile-laesare") + #$(this-package-native-input "guile-pfds") + #$(this-package-native-input "guile-machine-code")))) + (substitute* ".akku/env" + (("/bin/sh") (which "sh"))) + #t))))) (native-inputs - `(("akku" ,akku) - ("chez-scheme" ,(chez-scheme-for-system)) - ("struct" ,guile-struct-pack) - ("laesare" ,guile-laesare) - ("pfds" ,guile-pfds) - ("machine-code" ,guile-machine-code))) + (list akku + (chez-scheme-for-system) + guile-struct-pack + guile-laesare + guile-pfds + guile-machine-code)) (home-page "https://scheme.fail") (synopsis "Implementation of the algorithmic language Scheme") (description -- 2.38.1