From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eKTIH0OCxGRDywAASxT56A (envelope-from ) for ; Sat, 29 Jul 2023 05:06:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SLLHH0OCxGSvRQAA9RJhRA (envelope-from ) for ; Sat, 29 Jul 2023 05:06:43 +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 2289351ECA for ; Sat, 29 Jul 2023 05:06:43 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=ikmaLXJy; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=dismail.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690600003; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4l9dNqYzWp8l8ZQ+JTNtQ8S3yrRgJ7o6t5WA/uGzZqM=; b=RiqNBP3aEfdXRSynLJt6dfPDZlRJAPhWlRCy45uYDDZTAHNWCcGaF+uOpNgbvoAgW5SGHj Y5dU/x/LQpcm2xD+XGQ0xxTVF3Z/5OuQl1usMt08flNpdHGKYDp0/4tn/drsMkY2nyjiw/ KRgMEMWxQgrhmvYZZmH2e5aNe2Wxt0ATqWGIPks5r+GR3XeOnfa9dEIOnet83nNMZ5nPm5 K9mdBvzGVhOsVHn+CHrAqPQymFL1hJo9a74ZuhR1pnn0Zt5f6x36L6qpp0UQCl8ai6I2pV jRjt/0sNhWaFuU8v7vo/JYyK92lK8FShAuGcKzJ+Rz5TdvD7mJ3c6qcgP92XGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690600003; a=rsa-sha256; cv=none; b=eZ6gjxbP0ukbRbLw32JAVyufecsi0jMieR4A/aDURq3kb/wb8WhP9veVITvMJF7xFrmCsO 6z3r6BCtvKsKxVmqkcemaAwTcQ8gH/eKwoDZ3dni2s296D7ggpquZiRgDP2iO4VLkqDihs 5x6AeKDljN+lAj+guFtUdvV2HR41gLsmkwSh/+t9V5BfdF+yjoAe0lxPsOmVgv4JdvHM9w wpKc/wXNjm0IkI69ZQPT2SfnHFIBdlaIMg+UToq1nyy+yUk8s+MbbRdrYVh/RhoQTV6yzl z2Gx85qDVt6CmmfZRTCBjxTmhuCZRIUGPYCPLjKuWyW/csV16uQC6w9NAsmydw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=ikmaLXJy; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=dismail.de Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPa95-0003ug-Fp; Fri, 28 Jul 2023 22:57:31 -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 1qPa93-0003uY-Bb for guix-devel@gnu.org; Fri, 28 Jul 2023 22:57:29 -0400 Received: from mx2.dismail.de ([159.69.191.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPa91-0005gg-H4 for guix-devel@gnu.org; Fri, 28 Jul 2023 22:57:28 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id ef6644c4 for ; Sat, 29 Jul 2023 04:57:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h= mime-version:date:content-type:content-transfer-encoding:from :message-id:subject:to:in-reply-to:references; s=20190914; bh=2D LD+kbU8wksb22v8dkAmufZ05pFeS4Udrl07P6wcTo=; b=ikmaLXJykWuDt6l7/t zXwes94lRSTnm9vEaD1RkqVkraLPYNe+sLyqzxIJHHgiIpbioGhpA6Iu8Yk/EF7F B4ERy5F3kj+xll78g8cyBUBgqk+IELEty4Mnju4dhos03hjNNgqVyHnazLZNXV8R E0iDmozsb5Mt5/FMlMyigg7apVjX7Bi3z0Dxf2eXC8RRrBZUc2vgPYBM8elUlDeM b+Lz4kh5rwUdhvw1eGupzDKVBzjuLaSek+IJnrEVujQjkvOhNHk4Gx1i+W1PyM5i vb5u6OBRVtcg83nMoJTbXBDdIv03nv2WZfoGSKyPZTZfGlG5qT2iKyvcJALmIM4+ MzdQ== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 19e4b65e for ; Sat, 29 Jul 2023 04:57:25 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 4d5139d8 for ; Sat, 29 Jul 2023 04:57:25 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 1c750326 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sat, 29 Jul 2023 04:57:24 +0200 (CEST) MIME-Version: 1.0 Date: Sat, 29 Jul 2023 02:57:24 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.17.0 From: "jgart" Message-ID: Subject: Re: Adding %conf-dir breaks module To: guix-devel@gnu.org In-Reply-To: <0df40263fada8bd56adf4cce49e54a00@dismail.de> References: <0df40263fada8bd56adf4cce49e54a00@dismail.de> Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -11.01 X-Spam-Score: -11.01 X-Migadu-Queue-Id: 2289351ECA X-Migadu-Scanner: mx1.migadu.com X-TUID: Uzx52tQmoJGj (define-module (confetti features common-lisp) #:use-module (rde features) #:use-module (rde features emacs) #:use-module (rde features predicates) #:use-module (confetti srfi srfi-197) #:use-module (guixrus packages guix) #:use-module (guixrus packages common lisp) #:use-module (gnu home services) #:use-module (gnu packages emacs-xyz) #:use-module (gnu packages lisp) #:use-module (gnu packages lisp-xyz) #:use-module (gnu services) #:use-module (guix gexp) #:use-module (guix packages) #:export (feature-common-lisp)) ;; This is OK. (define x 3) ;; But this is not OK. How come? (define %conf-dir (dirname (current-filename))) ;; (define (path-join . args) ;; (string-join args "/")) ;; (define (config-file file) ;; (local-file (path-join %conf-dir file))) (define* (feature-common-lisp #:key (lisp-implementation sbcl) (init-file "lisp/sbclrc.lisp")) "Configure Common Lisp support." (ensure-pred file-like? lisp-implementation) ;; TODO: Use path like or whatnot. (ensure-pred string? init-file) (feature (name 'common-lisp) (home-services-getter (lambda (config) (list (simple-service 'add-guixrus-home-packages home-profile-service-ty= pe (list sbcl-cl-guix-utils guixrus-scripts sbcl-slyn= k sbcl)) (simple-service 'add-rus-shell-home-envs home-environment-variable= s-service-type '(("GUIX_EXTENSIONS_PATH" . "$HOME/.guix-home/prof= ile/share/guix/extensions"))) (simple-service 'add-sbclrc-home-file home-files-service-type (list `(".sbclrc" ,(local-file init-file)))))))))