From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8HDxIN27hmKUEwEAbAwnHQ (envelope-from ) for ; Thu, 19 May 2022 23:51:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0BLQH927hmJHWAEAG6o9tA (envelope-from ) for ; Thu, 19 May 2022 23:51:25 +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 26F3027033 for ; Thu, 19 May 2022 23:51:25 +0200 (CEST) Received: from localhost ([::1]:53646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nro3H-0001HK-WE for larch@yhetil.org; Thu, 19 May 2022 17:51:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nro30-0001FY-LG for guix-devel@gnu.org; Thu, 19 May 2022 17:51:06 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:43748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nro2y-0002Ym-Vz for guix-devel@gnu.org; Thu, 19 May 2022 17:51:06 -0400 Received: by mail-ed1-x52d.google.com with SMTP id c12so8541645eds.10 for ; Thu, 19 May 2022 14:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=ANFQvgwYxn3tsl85CD3GNhc4Bo2Ab1OLZCtaxFYjz7w=; b=h5EYUGHgb9IiBg/TTpBnqGXJlpqt1gaKOAoUCmBCRuKsxTIZSABO0dTxs4Zj29TQ/1 AAKdwVtXgWcOZ3jyuFcshxn9gucFSCx93V7b1b9/Lf0MZPXhQbBCIIBzmPoR6PBeWDw7 xFP4kUrb26Qjq7djxEjGStvJWFqC1+tQArUk9dYIs5Lv+EVgjXZZePZnbfm66twrO3Y4 EzpTm4gM+IzW/Qa6p0OhLjeFxo2zDDcSeQVm87I3mfUDh6XQkz4bxuTbbGConQfR3u1n iXxfyC489zi9C3yQaAtUxkZC7tUig1QGUxMbpHtqV1hDEBGV5bQZOVsQcTEzePsN+OMw Z9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=ANFQvgwYxn3tsl85CD3GNhc4Bo2Ab1OLZCtaxFYjz7w=; b=B+xjDfr4W5lDU0zTvwYVcRJiTfSdmxhJkBubG2oB/KNiUQtHnxga1TtGe9IyTn7+fD z0v2xWlUDrS8eJIUpwron0Q+OvEN0MpTJHaTp+qAK92vorch4BxD+ExmwpeEtAeGmbH9 Wqquh9pr3p8NdcjmK0yyaMvtOoq6LqhYmNcdvRqZwJXegTHAd2DN3XCh2Q5ql+I/Wesm xxo125TvprPwaxaHEMY+RKvxeWVDAiHK88+eFQHvUP1qLKmbStlqoC01YYtAQJ1EwAqU wPUERYlXhwA03obtq/0FKo9ENd32zw0bBPL0nghHHez/B2DFnqIiSMiJSro+A0IIkS+p JYXg== X-Gm-Message-State: AOAM533tVklyBhspBkqNWdqxo4rJAJ7lfOsvOJ3kxos2dj9eUtFKl6jq cKnamJXEWHSuZO6RRb81Pz8A2f6P/lI= X-Google-Smtp-Source: ABdhPJwjsX9MszPooxZOYDCSuxoFzRz6eC1BEER5kJVDZ1u1UjbrMF8s9mybYrM9ezOuC/s1r4i84Q== X-Received: by 2002:a05:6402:849:b0:427:edfe:1b7e with SMTP id b9-20020a056402084900b00427edfe1b7emr7633427edz.355.1652997063089; Thu, 19 May 2022 14:51:03 -0700 (PDT) Received: from gazelle.gmail.com (p579ad6e4.dip0.t-ipconnect.de. [87.154.214.228]) by smtp.gmail.com with ESMTPSA id b18-20020a056402139200b0042ab87ea713sm3276574edv.22.2022.05.19.14.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 14:51:02 -0700 (PDT) References: <877d6h47bw.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 28.0.90 From: =?utf-8?Q?Th=C3=A9o?= Maxime Tyburn To: Maxime Devos Cc: guix-devel@gnu.org Subject: Re: Setting environment variables in a profile Date: Thu, 19 May 2022 23:41:08 +0200 In-reply-to: Message-ID: <87zgjd2nui.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=theo.tyburn@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: 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-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=1652997085; 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=ANFQvgwYxn3tsl85CD3GNhc4Bo2Ab1OLZCtaxFYjz7w=; b=Aosahg+m152I9C/VxgssG6XAU8soPvR57PycY2waOw3Yqw+0Mm5kGzwFa5MnwaxDwkdGpm JIlk1Jljqe38ZPZid1rGRFjZM80112oiRPGUY/15Rioj/NefaGAb1kYf4IOICReKH+uO/9 E59ObI1NajJOhc+gzIUVgWpRFuUYl6/Jp5dWT5aoYnQzfj1KWYrlHTA9fY6o+/EtFlUTTt jVOClgTNfoi+830+mO4c9ZuzcghkNLJKUWqz1u1DVLfqz7KZdMPRhlcg69TDeIz5QnSTQW iuovU3ZY8/FqaLowi/kJyfQLOmWKyc89aacS56LReltq3jmMpbi/vwvJqYba/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652997085; a=rsa-sha256; cv=none; b=JkMa8jvhlSNipWrqibV+S+pIQvyxbvDdHAoEhV9dT8Hw/nYVO+/WbcUewWS76tAWEIf2At jpF1OkYuR/PHkNNeqPvAC5OIKBcwyFHhszKOpcf39hLTF+W/BwkECJQeKO0PGUu3PwsyAJ vQDJMhdM8fmI4fkh9zr0FCupGjFVxsliEDwr45my3L1busPeFVy0OzxP7r/dadm8ZF1Se+ MCmVGCqOhQtkbfuBWjtRMfAtYvQxM5uXNNBcDSTN+dPvUMCLxNFbUWgKuweka6jkHHofP/ XOOpdhMxFKsRbyrbIRS3vDoPwfceiIqTHO6htiAE4ui1IthswDryl5GYA0mOzQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=h5EYUGHg; 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: -4.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=h5EYUGHg; 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: 26F3027033 X-Spam-Score: -4.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: tfl3BAiMxxns Maxime Devos writes: > I don't think this is currently supported, but I suppose it would be > possible to extend guix/profiles.scm and to support this. > Maybe an API like: > > contents of manifest.scm: > (manifest > (packages->manifest (list python3 blender ...)) > (environment-variables ; <-- new field > (list (extend-search-path ; <--- new procedure > (search-path [...] "PYTHONPATH" [...]) > "/home/tedd/...") > (with-environment-variable "BLENDER_USER_CONFIG" "...") ; <-- new procedure > [...]))) > > WDYT of this API? I think it looks great! It seems the following definitions would need to get updated in guix/profiles.scm: - record: in guix/build/profiles.scm: - procedure: manifest-sexp->inputs+search-paths - procedure: build-profile > Greetings, > Maxime. Thanks for you time.