From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8OudNQSGH2OpEgEAbAwnHQ (envelope-from ) for ; Mon, 12 Sep 2022 21:18:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8BqrNQSGH2PECAEA9RJhRA (envelope-from ) for ; Mon, 12 Sep 2022 21:18:28 +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 CA0A33689C for ; Mon, 12 Sep 2022 21:18:27 +0200 (CEST) Received: from localhost ([::1]:47986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXowt-00078L-25 for larch@yhetil.org; Mon, 12 Sep 2022 15:18:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXowd-00078C-2n for help-guix@gnu.org; Mon, 12 Sep 2022 15:18:11 -0400 Received: from mx0.riseup.net ([198.252.153.6]:42126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXowZ-0008Fu-LB for help-guix@gnu.org; Mon, 12 Sep 2022 15:18:10 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MRGb04Y5kz9s35; Mon, 12 Sep 2022 19:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1663010284; bh=2DseTEdV0S2iVPSDHl9+C1OqiLCvGdtHGr7gqiM5LjQ=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=r6i7f0O3kgvMm4bZluVvMCOiEDu8uOWgHC00rG7JKabr/vm/xarTIVTxpM+4euxHV rCIbR6J21l3C1p5/aJviDj4B5ifQPOsBnGgsbM2Lb0V0lBGxwuwLZc4ICQEl5jKpED rH5hnbDwkuugEjAGzylbiMNs5qfVkx2BbN7bb8yI= X-Riseup-User-ID: 2B2894ECB0BD3DC8AC9CDDAB935460AC2E2706EAC97CB513784B68B68CFDC777 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MRGZz6bh1z1xx3; Mon, 12 Sep 2022 19:18:03 +0000 (UTC) References: <87wna8mv98.fsf@laura> From: Csepp To: Olivier Dion Cc: help-guix@gnu.org Subject: Re: Package inputs specific to an output Date: Mon, 12 Sep 2022 21:15:22 +0200 In-reply-to: <87wna8mv98.fsf@laura> Message-ID: <8735cwjtav.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-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: 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663010308; 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=38v+3G1xzqAvwy+BBlmvXefBMlVrw7TwFAFUPIQQHQA=; b=NdZuSgnDa9s/Al69ow3HpFVxonLrt9Vnqazvnu7Zbl4uxkDgWQNPAIl+Y/r+ugcQtPNLpc zaaMB5yY0pTbwvQDHUBnArA0fkltx3tZZCV0GoeJK5dBl+l0Jgf15diBnLfaS8QnJrmkIu 9GTdSC1VlRbmkw4EkIvqvG8ccj4Yc/vA3EbMc8rRYgXb9TMwrwKrS1fYldEfFNXJVNyEqp AbQOKLlSQLURvSvfGFBiBwLP7TSZ8F9SSXmfKExFt3Coq/YtZKsDSynDTUkOouqXC+rhVS aggT566WYpZd8WotHVRkJ1qI2RUdHSsbAKyc/H9+qz0frCCmU514jp27KGiohg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663010308; a=rsa-sha256; cv=none; b=akce9kiyTcwLL+Q2TuBewVJE77IQSFpN5PYeEcJfbuVgXAJMbymujluvyX7Of9mp2r09wk hWYaxFZsF1jdb+8UHQEOYB2HRzFN/Us1+ShRdzMCL3cCb19HeJJ8oCxuJZLmrF/yQhBEzk EnXNl7w4F/ArdQ1a558fwFxVErBQKH8aILGoCgTdm9hvmP7eGP0NpTrEgkL8nqtQ0Yplek Zp83Fd5OeNKxMRHVdRsNJPBR1daZkwe3FeA7VcawRPx5EE1uRnd+U5Eu2RyWq2iVSAmAzd rQtsAgs3QiaR2Py9p50+TrxJQ7Gpv+XaZi716b0iALO1fOe6g8n+ItyjEe3pzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=r6i7f0O3; dmarc=pass (policy=none) header.from=riseup.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: -5.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=r6i7f0O3; dmarc=pass (policy=none) header.from=riseup.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: CA0A33689C X-Spam-Score: -5.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: kic2h2q6iGvS Olivier Dion via writes: > Hi, > > Is there a way to make a package that has inputs that will only be > installed when a given output is selected? > > For example, I have a library that has a set of inputs for linking > against them. The project also come with optional executable tools that > use the library but also other inputs. I don't want these extra inputs > to be installed along the library if the user does not want the tools. Normal inputs are only installed iff the package references them. Propagated inputs are the ones that are "always installed" (they also show up in the profile), I'm not aware of any way to make them only be referenced from certain outputs, but in general packages should try to avoid using them and use regular inputs whenever possible.