From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YKEDBT6soGHU6QAAgWs5BA (envelope-from ) for ; Fri, 26 Nov 2021 10:43:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IM3QAD6soGFeaAAA1q6Kng (envelope-from ) for ; Fri, 26 Nov 2021 09:43:26 +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 1ABEB35DC2 for ; Fri, 26 Nov 2021 10:43:25 +0100 (CET) Received: from localhost ([::1]:46396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqXlM-0003P1-6u for larch@yhetil.org; Fri, 26 Nov 2021 04:43:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqXl1-0003Nn-5d for bug-guix@gnu.org; Fri, 26 Nov 2021 04:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqXl0-0006sN-TW for bug-guix@gnu.org; Fri, 26 Nov 2021 04:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mqXl0-0001ZD-Gg for bug-guix@gnu.org; Fri, 26 Nov 2021 04:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52107: An Idea References: In-Reply-To: Resent-From: Nicholas von Klitzing Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Nov 2021 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52107 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "52107@debbugs.gnu.org" <52107@debbugs.gnu.org> Received: via spool by 52107-submit@debbugs.gnu.org id=B52107.16379197726006 (code B ref 52107); Fri, 26 Nov 2021 09:43:02 +0000 Received: (at 52107) by debbugs.gnu.org; 26 Nov 2021 09:42:52 +0000 Received: from localhost ([127.0.0.1]:58696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqXkq-0001Yn-Gg for submit@debbugs.gnu.org; Fri, 26 Nov 2021 04:42:52 -0500 Received: from mail-40136.proton.ch ([185.70.40.136]:13827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mqXkn-0001YW-JW for 52107@debbugs.gnu.org; Fri, 26 Nov 2021 04:42:50 -0500 Date: Fri, 26 Nov 2021 09:42:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvk.pm; s=protonmail3; t=1637919762; bh=qIdXtZpm7pxWo5Uews5RDLbw2nxMIzRBtDodbdI/3oE=; h=Date:To:From:Reply-To:Subject:From; b=QYoXWmNYyHwxU6yyESZKaWOwkp3tFb/3Mpfi7bSWu92Jkb5TKk1eY7mUG0SBTT/E/ d0rJI1N5B+s63hgLzI5TVTn+XdXFxYHHUMZ3YV2Poqqhh2NuRdyrXOrqaXlzbivGy3 rp5jC0JVHCcKk6p50TJXaQboczqcuLEJiZfPEErS+5Uyah2h7I314x39F+aLXBUCaz G8XfViCWZay5rm2eOK8qMPGCfQh79tYTvY5ZHJjZZc9IYg6knjv809uLQG5wGf2lc6 FzzoKWv3l79qrVh9TuzQLPJMeHp2pozsvqSkxfNDeR9btfx7S536vh0Zuk/UMaERCZ qhy9Om+r3cZZQ== From: Nicholas von Klitzing Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Nicholas von Klitzing Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-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=1637919805; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qIdXtZpm7pxWo5Uews5RDLbw2nxMIzRBtDodbdI/3oE=; b=or/ZIfliYapjtPd7JUSEtXtghA4/5rBl6vafBwAJ2e8xau7x+DDQ3M47YmvxCshRb6MYVI Ic8y4IlVtkaFLjDn0ekf6KUEtUBFCjRtnRpDv5EvlRG4OhrTlTvyi/ySKpxPr7hchVYjp6 d4v2f5vZKT41UOUSUvG8a/jqScXdd7B1co5QYASqa2M3BNALoYL6RUR/d+2WKlilFwdUIG pmZ1+q96yLUp/pSx9YDFOlMuaXU4WsQNnmBDZTL2D5LdnKFUck2WGxpDa5RCTzoOjqdby+ cLXOletZJJpFUVCoCLSz8N8gLtN6touzTTVrwSd8lUqFwg3AbBGviQsyqOAjxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637919805; a=rsa-sha256; cv=none; b=qzOSuBjKsoSMVBFWaAzaJYlZlXdo+kKDIoFRZ6ZbabdbNy5uRycaLPXdepTOFp5yrJl+vb F0SlJ99QQvjybctHIyssoXgDvm0qSqH16PqxHa2NBPyjAYj+mQi98jM71seTXDlZsJX8zb zIyeByV8dQ6xLy3LXxcKSUigcwEVPyWc4C+tRzm088H4gpldYi5H9sf3+PuQPj+dXCy9hq FJSfyHqdSD0zpOvmr1MhmIytjMKMZzNc0QK2unZ+mLwZRUEI9SOTzhYg5uO2MI6k6SdPrC 4WVo5vczLC7rsrYVV8XBsFruR9EgaGjOJtq+ULwI3f4AmdNlOQ1S9vqlYTuSfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nvk.pm header.s=protonmail3 header.b=QYoXWmNY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=nvk.pm (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nvk.pm header.s=protonmail3 header.b=QYoXWmNY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=nvk.pm (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1ABEB35DC2 X-Spam-Score: -1.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: ck0XSnYEQ5LP Just to get the ball rolling, here is a possible idea. It might makes sense to add an additional output to the rust package `src` = and then require this by the rust-analyzer package as `rust:src`. In the rust-analyzer package we could then copy a thing from `icedove-wayla= nd`: `` (arguments '(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let* ((bash (assoc-ref %build-inputs "bash")) (icedove (assoc-ref %build-inputs "icedove")) (out (assoc-ref %outputs "out")) (exe (string-append out "/bin/icedove"))) (mkdir-p (dirname exe)) (call-with-output-file exe (lambda (port) (format port "#!~a ;; This style of overriding environment variables could be used for ;; RUST_SRC_PATH, although I am not sure if this is the idiomatic ;; way to do it. MOZ_ENABLE_WAYLAND=3D1 exec ~a $@" (string-append bash "/bin/bash") (string-append icedove "/bin/icedove")))) ... ((icedove) out)) #t)))) ``