From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YH1zHekO0mQJSAEASxT56A (envelope-from ) for ; Tue, 08 Aug 2023 11:46:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oNUrHekO0mQsSQEAauVa8A (envelope-from ) for ; Tue, 08 Aug 2023 11:46:17 +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 434194B9E0 for ; Tue, 8 Aug 2023 11:46:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=TZR4XUia; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691487977; a=rsa-sha256; cv=none; b=Kp30M4EC54CONaKbhUwAG5HOgEwY+8dXsPCHts262Gfw5vh4ckFFbRxhMSRp7O9SbO6zBk 3rhbKZAa5Lyj1P6a2L3cL2PaC6uiZKKcO4Je1CeYO2mWharRofg8Tm4jJdu77QYSwoVgqi np8EQnt5NzCFi6cvAoThCHgwd7gEhpH2POQR0wxsy98rYPWngC9b6TpTyViicE7I6Cxx0O thnA1nWgz6j1U1LXP/NMK45lGk3n1ij7bLOItjjigiGcBxoJKoDo0VyqXRVLa65c2aQdqG 8kXss3GUX9L+BdmYUrycfKo13srjWrPK9EVsGkdtzSFuEOpqYnBxaqP20HronQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691487977; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WkEK6Bguw5WaaSj0gkeztiiAjjPF3kWVXS2vOot1R8Y=; b=D411zukb8PmJVwPsE25hKyCmttvI1K6X5FachnqArT7LdZdqrKDU3hDIPQiO4dFsCerS/n AJuFNVe4WuCcXYFnJllqmaF+mlhMibrrnVgangPx+j9xeMgOwCtzh2tjjZr2GbytLY8fMC ipcRjyZuLPf5awS0dAoi2WGw/9IfYhK6EISV3aYcySR7jWQX/OQyVpoZSNNiBoadIzZTPC kkMYOhWIM4+HsrwHLb7Cjd6TnY9Vf/y5YuEXVXs/VhHjx3apHY/QrBVtdIWLz18Y+938VF VfdwuN9jvNSSzaetk3Ob4upn0awVP+juSlkxhjEhkSFB5sC35ggcKpA2DPKcTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=TZR4XUia; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTJHn-0006Bt-CR; Tue, 08 Aug 2023 05:45:55 -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 1qTJHl-000682-BV for help-guix@gnu.org; Tue, 08 Aug 2023 05:45:53 -0400 Received: from [178.21.23.139] (helo=knopi.disroot.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTJHj-0002V0-49 for help-guix@gnu.org; Tue, 08 Aug 2023 05:45:53 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7DE7E41198; Tue, 8 Aug 2023 11:39:39 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OtUCKjMgL4G4; Tue, 8 Aug 2023 11:39:38 +0200 (CEST) References: <2c0f0f92-5ca7-a5ed-4059-a98fa60962fe@gmail.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1691487578; bh=x81UT5Dtw59u9LeWsXbro6Suw4PhdoEDfxaR63Jyokw=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=TZR4XUiaIrUSgNGOgs7SFdPh6AmbdAl2W+AJ52zDaEGPk6UN4JYOhLJynmwV5eg24 WH731BMU35HUsJnOzY0vgPl5MiHLdo9m3gPP7ItTEBBnG6LaTMfbWGYoZmlVFgk+hL 4HbJBGZZjND6GNjoJtxJvFRev0zIlXdnhghJK522aufLmwLr1nXwWCB5toT/yr2rgB UbRXpCBZT+x5cY/QE4R8EuUygBZ7O8F+da5W74qEvwPK8TT1AOM4mnNEhf9jLHP0jy wm/OANljUy2iPb27rk+T4dnyq4SRc3+Bdyw+9AdgNXdKi8pfpE7saSt+s3Y3uWeJpl nbhUtUIyRE3Gg== From: "(" To: Reza Housseini Cc: help-guix@gnu.org Subject: Re: G-expressions in native-search-paths Date: Tue, 08 Aug 2023 10:36:13 +0100 In-reply-to: <2c0f0f92-5ca7-a5ed-4059-a98fa60962fe@gmail.com> Message-ID: <87sf8t27qd.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 178.21.23.139 (failed) Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.46 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 434194B9E0 X-Spam-Score: -9.46 X-TUID: +R2MWFpduJKg Reza Housseini writes: > I am trying to use g-expressions in nativ-search-paths field, but it fail= s with > an error message, what is the issue her: > > (native-search-paths > (list (search-path-specification > (variable "CFDEM_SRC_DIR") > (files #~'((string-append "share/" #$name "-" #$version)))))) There's two issues here: One, you can't use a gexp in FILES. This will work fine: (files (list (string-append "share/" name "-" version))) Two, this: '(string-append "share/" name "-" version) does *not* evaluate to what you think it does; in fact, it becomes this: (list 'string-append "share/" 'name "-" 'version) a list of strings and symbols, because it's quoted. If you want to use an expression within a quoted form, you can use quasiquote: `(,(string-append =E2=80=A6)) LIST works fine most of the time, though. -- (