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 ms0.migadu.com with LMTPS id aAaYEo+7J2J6xAAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 21:24:47 +0100 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 MGDiD4+7J2J1owAA9RJhRA (envelope-from ) for ; Tue, 08 Mar 2022 21:24:47 +0100 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 D15AD115A8 for ; Tue, 8 Mar 2022 21:24:46 +0100 (CET) Received: from localhost ([::1]:35830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRgNx-00047Y-Vx for larch@yhetil.org; Tue, 08 Mar 2022 15:24:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRgNP-00046t-34 for guix-devel@gnu.org; Tue, 08 Mar 2022 15:24:11 -0500 Received: from [2a00:1450:4864:20::641] (port=37608 helo=mail-ej1-x641.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRgNN-00061E-Fb for guix-devel@gnu.org; Tue, 08 Mar 2022 15:24:10 -0500 Received: by mail-ej1-x641.google.com with SMTP id bg10so422726ejb.4 for ; Tue, 08 Mar 2022 12:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=KpUNEQAp7z1iW/YDo8fsM3mtQevnNTZxT8qWLqASE4Y=; b=n4AViASlvmlaeUUwxhX/zTDAjTvkProyKsXZgPWFqWFwUlxkk52+A1vihixgI+Y/5H V2w5BTAkaiJX1oW8nxInE4uhpulbM1Rg+Y/zCB6W8ZGE925GfyX/oULkP86QN+0XKgii 9N0B2h2Qgv3L61UeKKtFKkQd9JT29qDy6OjZrmuSC+I42C+uqC2HllX7cTzkOh6eUWC2 SuUH613aW/vZ9YzJX0Ww4N99JlBLMZrSFmY41lLCswYcndUAUipI0sXcayfr3+7KaMzp P9LP82hxQqftDsA7tIMcWSiO7BnDe7gph7HPrr4XfzU+bLhMGHXYBwEQal5K1ijR1s7k bj/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=KpUNEQAp7z1iW/YDo8fsM3mtQevnNTZxT8qWLqASE4Y=; b=FqUV+dsBNNkfTX6isKyuqidrRJf9sZSe3hIR+5f92g4+tk/7D+bAVt727l0kcBpadp Xkvu++WIEQFrUUvbF7ZXk24oVeNQeZwurcolp3ctMAHlppX/XbMFIa/T+gv7El828kts XtYSowTyux9SCMG1dht2Zp9LNNZTpb2+Y1/1IpBMNrqWnT4gOdi70Nmm6GVrd/ovJyty i/GdfPB1AoV0geOQlMv2WsXG7nS76h/23vAYFtq6YYlRexspM2iqxnumtHP61yQ98c7d RSTGsFWkmgICzjJ6RL9hCqjGfzMsINiT317mRXwb1v5O+JcfPGNqmhvCUqpdVTbAuv5/ 0NbA== X-Gm-Message-State: AOAM531xzdAVlTUla2gCDY6o8FmfDwQ4lwfSHXj43+oQiIhiiMguH7w4 ckY+sSH0ufYkfCGjhru3HPo= X-Google-Smtp-Source: ABdhPJzXAHagTnmGXe/5cUQbDVpKY6NvAuQD9uqySYr6FiWZSrsfu/jeYsKoDUl7+8MptO9at7dY/g== X-Received: by 2002:a17:907:2d28:b0:6db:2bb4:a8f1 with SMTP id gs40-20020a1709072d2800b006db2bb4a8f1mr10319925ejc.663.1646771047142; Tue, 08 Mar 2022 12:24:07 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id cc20-20020a0564021b9400b00412f2502469sm8223951edb.23.2022.03.08.12.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 12:24:06 -0800 (PST) Message-ID: <1fb349d0e9eeae9be10345fbe9002daa9ace8ed5.camel@gmail.com> Subject: Re: Package's inputs for developer? From: Liliana Marie Prikler To: Olivier Dion , guix-devel@gnu.org Date: Tue, 08 Mar 2022 21:24:02 +0100 In-Reply-To: <87ee3fvys1.fsf@laura> References: <87ee3fvys1.fsf@laura> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::641 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::641; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x641.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1646771087; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=KpUNEQAp7z1iW/YDo8fsM3mtQevnNTZxT8qWLqASE4Y=; b=ezqtvN9LLnNCShiDhuGD/0WHlVQwzkded4sFNHXItvHCabOMTwezbN6FL50tme78jrF4XT 5wZinUjUnXBolbpQBzlNznh8QG+z6yvFSDFGbGVI+uZkNvey3I3k9rjBoeaS98yz/oFhN7 4mCKVmL7gC9dXDXnSwdvPab2UQTY4Z7vc4PjqJI2ArKBOrRbQ0chkX/kohY0MifvPGQHlF lC6tFG0nqZJkm7nwP6M/5WdLH160xoaiy/0IYeDHZX7AncsUJ9Q+wVyOjSTx7mQox5mJ91 JEaPUOwYXoP5KFP3Jr0mYjfn/+9UB1BcTptfzPN+RefR+XkYOdgY+MOO7vKI3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646771087; a=rsa-sha256; cv=none; b=iNhCErEsSlC2oB07hYPVdlU42ElPUGnepTh5xlgAZQLSiLJBDv1YfGBbpuh81ojxt4Mjpq M9mD5PR4Jwt1sBPMhNvZY1EGeSpU2yMMN6R/T9KE0O4mlObct7j5fcT4LesquPWUBTvuw+ FVPQBFc6v+86VcFOl6jAug5V0UeyJ+4NLbYqvkM0LBQt4vmX/vfm1BiBREab5i5Pgzb+Xa Qbpy3YOoviq1dyLHhatoaZ/hJecBYOR6cWfF8SINvsbnd8K9GkzfdtOmPUMW/edXc0cppc 4or1oFdy5iS60ayFWxnV9Uz+0wGIlKcfY4fakUecHmGPSEFx6pg2sgKTaw32iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=n4AViASl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=n4AViASl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D15AD115A8 X-Spam-Score: -5.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: WrksEzm6yVOC Hi Olivier, Am Sonntag, dem 06.03.2022 um 11:19 -0500 schrieb Olivier Dion via Development of GNU Guix and the GNU System distribution.: > Hi Guix, > > I often find my self using inheritance of package to add native-inputs > that are not stricly necessary for building the project, but are used > for developement purpose like so: > ------------------------------------------------- > (define base-native-inputs (list ...)) > > (define my-package >   (package >     ... >     (native-inputs base-native-inputs) >     ...)) > > ;; Developers version > (package >   (inherit my-package) >   (native-inputs >     (append base-native-inputs >             (list gdb lcov)))) > ------------------------------------------------- > > I guess this is the correct way of doing it or perhaps I should put gdb > and lcov in the base-native-inputs?.  But I was thinking that perhaps > something like `(developer-inputs (list gdb lcov))` would be better, > since these inputs are not stricly necessary for building the > package. Note, that manifests exist and you should use them. An example (from [1]): --8<---------------cut here---------------start------------->8--- (use-modules [...]) (define %here (dirname (current-filename))) (packages->manifest (cons* emacs emacs-geiser guile-hall (filter-map (match-lambda ((_ (? package? package) output) (list package output)) ((_ (? package? package)) package) (else #f)) (package-development-inputs (load (string-append %here "/guix.scm")))))) --8<---------------cut here---------------end--------------->8--- This adds emacs, emacs-geiser and guile-hall to the package- development-inputs of the package described in "./guix.scm" and constructs an environment with all of them. Cheers [1] https://gitlab.com/spritely/guile-goblins/