From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OMCYFFFPvGHlYQAAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 09:50:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IMhcEFFPvGH5awAA1q6Kng (envelope-from ) for ; Fri, 17 Dec 2021 08:50:25 +0000 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 D075A18FB for ; Fri, 17 Dec 2021 09:50:24 +0100 (CET) Received: from localhost ([::1]:59766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1my8wZ-0003I2-DE for larch@yhetil.org; Fri, 17 Dec 2021 03:50:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my8o0-0006Ca-T9 for help-guix@gnu.org; Fri, 17 Dec 2021 03:41:33 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my8nz-0007MO-1T for help-guix@gnu.org; Fri, 17 Dec 2021 03:41:32 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 224E2E0015; Fri, 17 Dec 2021 08:41:27 +0000 (UTC) From: Nicolas Goaziou To: Jim Newsome Subject: Re: Reference a store path of an input? References: Date: Fri, 17 Dec 2021 09:41:26 +0100 In-Reply-To: (Jim Newsome's message of "Thu, 16 Dec 2021 21:20:22 -0600") Message-ID: <871r2b62tl.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@nicolasgoaziou.fr; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1639731024; 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; bh=nj/yWDpIXTuG65bBwfOWL3O4vGmax/Y0A2rtGkkWBbU=; b=IoHMJ8GjIHO5A/UROoUN/tdhnxphOCWyAAwBhJXthnskkFW8i0KtqBgUthYej0D68Xa+SP ArLQYXUO2WHLN9D9RLTnm9FZveZY5uROn5+YT6z75wxa7Zn4iA+0+3wfsF9LmQTUG4VG4p jGWOQvsDbtNg806CFnWTCHm1YelMPJFrY3EOd4+Yji2hvyst84/c3kL0OwlHpgCvl+hu1b HA9xSc5gxu4JpMVHsf1CxwE4o00v1aM1fOy5vpPWpHZm4fNy19CpRvS8nv/tuYQIlTF7Dw IDGeJ+Gb05Ky3+Tah2n8yoQQVTM1Mz1r7zhIDQRT7hv8uimM+hf2ptHKcJREiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639731024; a=rsa-sha256; cv=none; b=Eehvo+z6xcu3UohkAmOWCUsZB1T9VxZmDYXUtHDaIauyY8gZDexedH8p3Dfd3+awMHWOTs bHv0IS8aHOu2HRaK1VW7oQjLKFEKvmWhgJ28Ql4KJAadAS+X6h8M7V2U70TVipZgQU756Q Rp5OrZK4/XbM3PfVcsZbSp/0m63HhVYVYItK86IWxfdL9QGcypDfWEQraLyrIT/DDz+pxQ 0egqsLsYSmCAhyLgdwOcJEi3xTceQ1/Vn8qOpsUpJZ0Hmmh4Qezy2CVeWYaVE8JVxnY94r /L2x69TbzJVISsHcP4EvT6B3VXPxTRF4+ImIcbRsvB6KtM16YvhUPwMMrxIbWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -2.79 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: D075A18FB X-Spam-Score: -2.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4TIsWNI9E/YI Hello, Jim Newsome writes: > I'm just getting started experimenting with guix and guile Great! > I'd like to add some explicit flags to the cmake invocation so that it > knows where to find glib. What do I substitute in for "get-store-path" > below? Pointers to how I might have found the appropriate helper or > approach on my own also appreciated. You may want to read about G-Expressions in Guix manual. See also for addition insight. > ``` > (define-public oniontrace > (package > (name "oniontrace") > (build-system cmake-build-system) > (inputs `(("glib", glib))) > (arguments > '(#:configure-flags > (list (string-append "-DCMAKE_EXTRA_INCLUDES=" > (get-store-path "glib") "/include")))) > ... > ``` I should be: (arguments (list #:configure-flags #~(list (string-append "-DCMAKE_EXTRA_INCLUDES=" #$glib "/include")))) Regards, -- Nicolas Goaziou