From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 kEAHLWdO3GGeSgEAgWs5BA (envelope-from ) for ; Mon, 10 Jan 2022 16:19:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qKefKWdO3GFZIwAAauVa8A (envelope-from ) for ; Mon, 10 Jan 2022 16:19:03 +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 84FF1351D3 for ; Mon, 10 Jan 2022 16:19:02 +0100 (CET) Received: from localhost ([::1]:39230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6wRp-0008U0-Lc for larch@yhetil.org; Mon, 10 Jan 2022 10:19:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6wQL-0008S7-UI for help-guix@gnu.org; Mon, 10 Jan 2022 10:17:30 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6wQI-0006ZG-L7 for help-guix@gnu.org; Mon, 10 Jan 2022 10:17:28 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 919EE5C0153; Mon, 10 Jan 2022 10:17:25 -0500 (EST) Received: from imap45 ([10.202.2.95]) by compute6.internal (MEProxy); Mon, 10 Jan 2022 10:17:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fullmeta.me; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=wcFQcJrFU2JAnJUv+t11qQLlL/kABzf iciYE2h7uHPo=; b=biPOZ0HaoNUY8/rLGUBhPjVKbhxoqPaKIdApO9FdC9Bouza Y7w8fBOLKCv/fTmSMLmGJcKNLPwQuqPCP1UlpqbKYCJPhGaH0wgeY1202SX/vJig Ajfc2L4W/Ua/CaPyXYMofrUUcn2L3eXXI2KTaxXEKXgJBFM6IrbQt0iLlHzg04GD xJR4weqfdagmTIRsmvD2tmejUfeOXHmqQ+3a/JuSyrwfHWad5Xsbq6gJvKO7Egpp mJaINQYPb0NrIJuk39YI+pjG7vonG8GH3iahizzaoCaDYEaK54VyI4kPVgp4aaCX D75RUaHGGabjTapHixPoWsaqmGfhEXNXcaQYGfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=wcFQcJ rFU2JAnJUv+t11qQLlL/kABzficiYE2h7uHPo=; b=HOnCU70ZNmSKvTGJxZOw/c yc8P/Exlwas1k15BdvoaP81IJyCawYa05NmhKKuzCBAvf0oPo1wqgpp/Uo0Sc0D5 N5Ihe7WQWG2DzAi/OmsAS12pn8+ZYsRIccXl71PFkwt1cJqTDBmHrPMFOP/iINHc SAjuLlsh9HlCI2CE4KJQTN0UOg6pBzBIRYpsIfRaD144PsqkXrero3/GQh1tSUTa BlAgnUEqiqsPEufcSWYBcxPmLyZGxN0MFhak9mzXI9awwWrAn00bOcVUiu5F+zlY /E/nXiXxo4Jw8PsXSX7/ga3TAASadg2zGBV3Q9LsfA4Jp0kQCRqbQks0iNn8X4yw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudehuddggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpehtsehfuhhllhhmvghtrgdrmhgvnecuggftrfgrthhtvghr nhephffgvdetvdevueeihedvjedukeffgeevgedttdfhjefgveefieetieeiteehfedune cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthesfhhu lhhlmhgvthgrrdhmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1CD1724A0074; Mon, 10 Jan 2022 10:17:25 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4527-g032417b6d6-fm-20220109.002-g032417b6 Mime-Version: 1.0 Message-Id: <95b291c9-b95f-488b-82b3-ebc2d3d16533@www.fastmail.com> In-Reply-To: <877db78z9r.fsf@rwv.io> References: <87y23niukg.fsf@fastmail.com> <877db78z9r.fsf@rwv.io> Date: Mon, 10 Jan 2022 15:16:58 +0000 From: t@fullmeta.me To: Remco Subject: Re: Web development on Guix: nodejs, npm and all that Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=t@fullmeta.me; helo=out1-smtp.messagingengine.com 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-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=1641827943; 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=wcFQcJrFU2JAnJUv+t11qQLlL/kABzficiYE2h7uHPo=; b=kmZJ7GLsqyIIfIVLhfCoNWNScLfhZjwjlV+GxMdTfB+oFWATTFjVJG0+FGK7xgh2IWHF8H +3Se7Fyr2RBr4LUQ9WlvP9PQeV+RyQI7dcQ4qDxmy+6V4hgLszGWg0DdQFVBrJrAOULV+x 9zE7rrTlCnp9IQDtrmTArYau2tqSlYP9hnjPQM0NouKfIC2faSzDXyEouzWWn0RKw6L092 7CHM2m5LszZvREAkIJfQLRMJYjFWhxc4sPCe9au7xyz8CHIA8qteMY/2KZFSSwejPlDzWZ ZsFg/ED/dgXep9mZtfRkPDhmosCK95Dl6CKYNnQnoERLVSC0H0aq9/eLuqXLTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641827943; a=rsa-sha256; cv=none; b=RNS/jQMyt51k6b4vMSPBBTATHdnMXDCLUaA7OBjLVSbpS4bDlEoXXftUSLi+lscZOcL3fp pNH0L6fwwWihTlNAuoolNzSmVHmKeDNqQxpBQpr1ivG21dZGPFAQRqXDqw4MgsPJ95OA4Y SWNlbwbNZaKKbVWnOuE0rtNIl1/+8Cxw5BzIKGwGQhW+11Frhm71tzx2pvldRku/mZenEn nAT3guKtJiT4Cdc3LMwZ8Lcgz9eLkvWCkjZBxARnZvyZ96QlWIuOuab19uYH2v0nMp/dwk 7IGMyarOGwnmFNJflCoQ3tCBfRSIgXlDLMUFn2eyfWpEbPT5UXor1uMr22gWSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fullmeta.me header.s=fm3 header.b=biPOZ0Ha; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=HOnCU70Z; dmarc=none; 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: -3.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fullmeta.me header.s=fm3 header.b=biPOZ0Ha; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=HOnCU70Z; dmarc=none; 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: 84FF1351D3 X-Spam-Score: -3.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: zTrM+pgnPzTi > I haven't encountered any npm package which doesn't work when not > installed globally yet and it seems to me that would be a bug in said > package. this is certainly great to hear! Thank you I've been trying to do all setup via `guix shell --container`. Is there an easy (obvious) way to extend environment inside the container? I can --preserve etc, but doesn't look like I can easily change e.g. PATH to ensure it includes local node_modules/bin. Maybe the better way would be to have the ability to set GUIX_ENVIRONMENT to a profile that you tweak which sets env vars apprpiately. I feel like maybe I'm already asking too much of the guix shell CLI front end and maybe I'm better of reversing what relevant .scm script does setting up container's environment and just drop my modified .scm script to a project dir. I hate mucking with BASH and such - never ends well and never goes smoothly. Anyone has suggestions? Basically at this point we are trying to go slightly above what `guix shell --container` or even `guix shell` can do. Something that I feel amounts to (in non-guix world) to running a sort of .loginrc script when you enter the environment or container. Should I just hack some .scm at this point?