From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 0KvSEBsc0mTrXgAASxT56A (envelope-from ) for ; Tue, 08 Aug 2023 12:42:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aAeVDxsc0mQvKgEAG6o9tA (envelope-from ) for ; Tue, 08 Aug 2023 12:42:35 +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 E0A4030F51 for ; Tue, 8 Aug 2023 12:42:34 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=c4X1gXY0; 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=1691491355; a=rsa-sha256; cv=none; b=ZD/Yvynd2w/cyg1/5YKhPP3EAns/wUJ99wIxxTaJ0KWZ++Vqf9qhIteuzhHRmcsOxHc0an /m888oFOqQG0v5i7pUkXpx9jmltxrapkQ50ZrUKUollNIHqpWIMzsElHlHpGrWVLkmFvUu nuyAfCHS5Ta/SYC8Cd0ccUib9FhifDSa2v7YRF9xWv/Uj2kNxsrG///vdHOw6FkxOqOF6n AMlAFYO2CaLu6+T4rL3VTFFLHGJUz8osMFo65oI34OdlGGDDAXWjrEjG5JlH40e1yLCqot 7mStjx6jqFOJramxrCnjwWYwo8L4c7fwL+VQU4qlrAvJfPK7LSj/y5trmvVO/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691491355; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Nlq613MDSOwenKlcP6p5bIR/tMmZcjg5EQj4nBhuy98=; b=TuQDeWXf9Pug9n4njwaihRozXCa0GNCM5tDfazIBBJv1u7xpN83QVGnFLyIXYhipgDjT5F o+trJLwyGldirHRN44CBnJhfgktiKc4716uBnmFAm/xRylax/n8YOF8KkerIeic1eQiH2z dd1MJuA1nOeE/9wNK4umgpk4Z5ND1DydIR5RRKWv0YS2PSLGf0Asu1y/ZLf5GPyzYB5rjq dCR9aK4peoi20dGUDVHd3JMc4CGNqJqnfv/cnBGOgDPhdxTSASkmFGxdCbMGLJu7KSXs+3 Rs0eJyyLKU9qWWyNdHjDDny+hdkWYig/5lldERrP4Adu7Efx5KFBK2idf39KDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=c4X1gXY0; 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 1qTKA5-0004lT-8r; Tue, 08 Aug 2023 06:42:01 -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 1qTKA3-0004kn-CE for help-guix@gnu.org; Tue, 08 Aug 2023 06:41:59 -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 1qTKA1-0007Nz-0s for help-guix@gnu.org; Tue, 08 Aug 2023 06:41:58 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9E8B2411C4; Tue, 8 Aug 2023 12:41:53 +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 xs5-dfdbbIAI; Tue, 8 Aug 2023 12:41:52 +0200 (CEST) References: <2c0f0f92-5ca7-a5ed-4059-a98fa60962fe@gmail.com> <87sf8t27qd.fsf@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1691491312; bh=7m8A4TuEzD8nYtfApRWclA8PNEy7XUwh3AHyfyr6btQ=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=c4X1gXY0oEfHec1BZmp7bLf6T6VplEYdS3OcA5QT8QDVk4t7anPIMQFREWQghCVSy cqG7pixxOHvey1PbBhhCjEy2BplAGiWvPbGNycoa4sBW/xoDjBjf4IhxpmBmKTNb5s McBYzmbniw0CGy8/v47V8Z8kgp2Y7rt/jkAJt/Z/GqcV+elfTUx6vUWifm+AxIP9xc LYPAZ5uAeOh5SlvAM0MKsR4lh6zYjMSm7B45K1BgEl+MJVlWWOVnefeRt1SYuXE6KW TreZ7IpYfGpApvSaCB7jb17fk7128Hj9KDA6aLBMCHC8h9YKDfUqesN5jjmX00jJie f5YE3rVuw01Tg== From: "(" To: Reza Housseini Cc: help-guix@gnu.org Subject: Re: G-expressions in native-search-paths Date: Tue, 08 Aug 2023 11:39:42 +0100 In-reply-to: Message-ID: <87o7jh24un.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain 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: E0A4030F51 X-Spam-Score: -9.46 X-TUID: 2tbmfuol02Or Reza Housseini writes: > [[PGP Signed Part:Undecided]] >> 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))) > > "name" and "version" come directly from the package definition? > How do I know where to use gexp's and where not? Have a read of these: Dissecting Guix, Part 1: Derivations https://guix.gnu.org/en/blog/2023/dissecting-guix-part-1-derivations/ Dissecting Guix, Part 2: The Store Monad https://guix.gnu.org/en/blog/2023/dissecting-guix-part-2-the-store-monad/ Dissecting Guix, Part 3: G-Expressions https://guix.gnu.org/en/blog/2023/dissecting-guix-part-3-g-expressions/ -- (