From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gNiLKgBOvGEKYwAAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 09:44:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4AhGJgBOvGF6CgAAB5/wlQ (envelope-from ) for ; Fri, 17 Dec 2021 08:44:48 +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 48B8813F0 for ; Fri, 17 Dec 2021 09:44:48 +0100 (CET) Received: from localhost ([::1]:53842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1my8r9-0006wa-Dv for larch@yhetil.org; Fri, 17 Dec 2021 03:44:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my8qO-0006vo-Kh for help-guix@gnu.org; Fri, 17 Dec 2021 03:44:00 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my8qL-0000jk-UI for help-guix@gnu.org; Fri, 17 Dec 2021 03:43:59 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E7F4F240107 for ; Fri, 17 Dec 2021 09:43:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639730623; bh=d+n97eTWRUUaM8pI6M6EcrSQgP/R0FG+Y9id0/cWEDk=; h=From:To:Cc:Subject:Date:From; b=VS3q9gWU1btADmXzxuh6YkZKNsub3MxQmGlhhwu+h6vcTKuVobvVkkKnsJb1LKRVj K82B0sI9zNFherw/+CI5POIkm/EMGwzmlPNZwbsB0SrI2dR7bqzkf//FM9uCusT+J0 FyhaMXTMBe3C6oIWTbgbyBmhG2H30/XbH9cVRGNeKpszQ6s6X+SMh+6XNFUDB2AkCx gkiuDygLuxCGnDqxPGyEHkBkJX4Tzg4K+DubWsWg9uGPUchfmqwNqu7eOo4su0zBL1 pIWyCOfbEKzb/bnBmfQp8FzZ2gm/vxjRGrL67qR8U6X6QkljcBqjYi1N/7tSjqtwqc s+/B8789G7h6w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JFjFB4ZtBz6tmH; Fri, 17 Dec 2021 09:43:42 +0100 (CET) References: From: Guillaume Le Vaillant To: Jim Newsome Subject: Re: Reference a store path of an input? Date: Fri, 17 Dec 2021 08:40:03 +0000 In-reply-to: Message-ID: <87o85fwrio.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.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, RCVD_IN_MSPIKE_H4=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=1639730688; 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=ZKq12POEBCtIb8bVGmhFfDkgC5vlNJW8cssDAv0xaH8=; b=I+COplDupY4vVrJWwhTsDcKSH94S75z2pNPxNhISA92qloMqBn0vT8dDVGtAHj3OTtTGN+ r3AgjK4OCm8oZa3lteXno0pwl5QkzKrAunuIog0hk3zPOaSMuKSGK1gBVNtsAhy7xZz+hQ dmIQrTetQH92y99qsaUqUtCbDwI+xwWmeTCVqgfc1no5A2xz4gDF/YzNGC97rHvE6BCi0b Dd3FyN16ijZ9I5s3nnSixAO+W5z4vOi5jrjQNKuM8TTStJMx0k5cj4MsqdExAvIjRpBkuA gdocp7V6WivFvJ+muGxbp7fimR4gvO27EbNEPgcvrDhq99Os09Kc9+7iQ8H6Hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639730688; a=rsa-sha256; cv=none; b=uOMsR9woFWIIN3s8ZyYDwSxsAsiqaOyqwlVLlF0uLVnGwdqPXNfsezarFbn/mwiGi/viHs fUxTozH88SkSrIGacHB5Me//pk5z0vkfgqaI0tS8guUECutnNHsimHmkV2iBytFviivq+m cL0nHtAfwS6jy8c+uO12bpbnOgFWTd8VlaR+Mg5vm7tqr6w7CmgU0cEb6JVBAF8FondA+A q/u211CEU0FiEQDTMczVcQeelzYym334sY4rzQPlMy3MYw+qbbmvxYWhIR+xAHN3tczg33 yMmtcYxfg+fIUMphk1U5ORJQcERV78Ta9PYmkzo6gNLUV/6sbDsdl7dBlMkaOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VS3q9gWU; dmarc=pass (policy=none) header.from=posteo.net; 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: -9.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VS3q9gWU; dmarc=pass (policy=none) header.from=posteo.net; 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: 48B8813F0 X-Spam-Score: -9.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: exfI2ezqVkU5 --=-=-= Content-Type: text/plain Jim Newsome skribis: > I'm just getting started experimenting with guix and guile, so I'm likely > missing something obvious. > > I'm trying to write a package definition for some software that builds with > cmake and uses glib. The software searches some paths explicitly to find the > glib headers etc; it should be fixed to use pkg-config instead, but I'd like to > figure out how to work around it both as a learning exercise and so that I can > work around it before I can get a fix merged. > > 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. > > ``` > (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 think you're looking for the 'search-input-directory' or 'search-input-file' function. There is some info about them in [1]. [1] https://guix.gnu.org/fr/blog/2021/the-big-change/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYbxNrw8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+w3wD+ISYXMa+mnrvdpfmPbVDNvgzGy7fI4uo0wESx aQp7OmAA/2+0uJLtTK79FgcHP9HEvGzcPiG7NXq6GNN231Q7j+om =oxUD -----END PGP SIGNATURE----- --=-=-=--