From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sEZJJDyUemOnXQAAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 21:55:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8B5AJDyUemPfYAAAauVa8A (envelope-from ) for ; Sun, 20 Nov 2022 21:55:24 +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 4EBAA26D27 for ; Sun, 20 Nov 2022 21:55:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owrL6-0005r4-Jn; Sun, 20 Nov 2022 15:54:56 -0500 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 1owrL5-0005qo-5Z for guix-devel@gnu.org; Sun, 20 Nov 2022 15:54:55 -0500 Received: from mx2.dismail.de ([159.69.191.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owrL2-00042I-Qi for guix-devel@gnu.org; Sun, 20 Nov 2022 15:54:54 -0500 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 5c259b2f for ; Sun, 20 Nov 2022 21:54:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:subject:references:mime-version:content-type :content-transfer-encoding; s=20190914; bh=mh0OJsHncQfHUjqEdMa6f uleDyvGIowr2uf6jePNVAU=; b=swjr98lQHRFBASpdzZMqgYemIk3Q1nObeoTLP W0/0i+wXfmeOcwhQYpdttIgedRsNu6MNaWxhZ9/DCirZ1E+E8VXLBZ1SUrsi1NU6 nI0NOv49v9m2q2LuZ4Pfsl0OU9dQRqemIg+wixg0RlSP5BtH627VXjNuq67WbvnH 7+1XR/yByAyaYKc4szjaUkunIQTdBbqKAmN2mq7+dlkmxIACheJ1eTsa4TmAptXW 1RDTkTreF6JQ542MhmJDG6tE7meY5FW33qaV2Zvp+1qMpxqrgh+dxOAPDmfl8Q0m xFTetRW50vJW8Cspyfc+FBBw05t79nzonAzT6h8zMtGxlaSug== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 87761ba6 for ; Sun, 20 Nov 2022 21:54:48 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 3a0f0aac for ; Sun, 20 Nov 2022 21:54:48 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id e811e8b5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 20 Nov 2022 21:54:48 +0100 (CET) Date: Sun, 20 Nov 2022 14:54:40 -0600 Message-ID: <20221120145440.GB23557@dismail.de> From: jgart To: Guix Devel Subject: foreign-distro? References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org 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=1668977724; 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: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZHzSCMF6g1LEsT8DWlQfyt4hY6Q66IfJ2voIGl3qrkM=; b=teVzLcBPiV55KvvP792P1q1QC7YRVCBSlI5+fCllpzFApE29qBijUDv6xLmuGLCIO94xfu lJAxZXoqfjr4mhSxUoUA827gMWDO5C2e036Hrijv6ezLKUL0Du99jy0+9elr9/nidnUBYR w/oEhP8bslkz3V99kCD8i65ULJKP6OZsyXPVqIPrm0g0UxfPwLeog84ahC45vxYUPk9+kC l+JX08CjnQ102Q1ShN2ZYmPamG/kkC4JS5X9ygauwQ5TLj4LPpqAz3WgpCoh/nPe+/iF2x T+Vwna9BY1bHvjHx4TRM1uBFmyvajk1lOqYiLrHYvaRGxm+8wuQb1GEyuvr3uw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668977724; a=rsa-sha256; cv=none; b=uGZ376lFCv54QdOR9OwQ+zXxtSk9t5nedRhlRxd7MrxMRw9i2HJvUkF2C0d+f3VbJp94Yc pAToKc3OjhFPUNY+6yn1t0BobLwjgARqr5ZXEhGWSCkIyMCOosPAEm1vR+r0YSul1PI6Dt /CHdKRXaZeWdDqgiQfbhbSnfWkYT35L2akOFal55Zw0B8g4kYJhIDo174OonB3cd8heo0L SEJpBMFnxw/cPnYy/M5ou0/jHaC8iM0laEcccP17GCTD2PNKRJn3vlcxzFrYWg54DQXTsI WURWldoIJKTjUfLnUnvNsPBXOOjQvNo0Fuddbb7Lv5nPhTVYP0hsYJN5uaqiGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=swjr98lQ; dmarc=pass (policy=reject) header.from=dismail.de; 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: -4.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=swjr98lQ; dmarc=pass (policy=reject) header.from=dismail.de; 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: 4EBAA26D27 X-Spam-Score: -4.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: D2oJs8NhbZsO Does Guix have a declarative Guix API way of knowing if it is installing a package into foreign distro versus Guix System? I'm thinking of a function like `foreign-distro?`: ``` (define-public peek (package (name "peek") ... (inputs `(,@(if (foreign-distro?) `(("ffmpeg" ,ffmpeg)) '()))) ``` The above includes ffmpeg in the inputs only if installing peek on a foreign distro. It could additionally patch the ffmpeg executable in a peek package phases if foreign-distro? returns #t. WDYT