From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 3awTIRJ1B2BrFgAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 00:10:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iNFcHBJ1B2AgOgAAB5/wlQ (envelope-from ) for ; Wed, 20 Jan 2021 00:10:58 +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 A68C6940416 for ; Wed, 20 Jan 2021 00:10:57 +0000 (UTC) Received: from localhost ([::1]:37286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l215M-0001F6-4J for larch@yhetil.org; Tue, 19 Jan 2021 19:10:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2154-0001Ee-Mo for help-guix@gnu.org; Tue, 19 Jan 2021 19:10:38 -0500 Received: from mx1.dismail.de ([78.46.223.134]:23167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2150-00029e-UH for help-guix@gnu.org; Tue, 19 Jan 2021 19:10:38 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 111bb856 for ; Wed, 20 Jan 2021 01:10:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h= mime-version:date:content-type:content-transfer-encoding:from :message-id:subject:to; s=20190914; bh=DS8ZJ+fF8GsPS6VtMouDrbB4I tkeLhsi4x055pzZL1U=; b=kzk53PuL7mk7jCNjXmGPyVNwani3LaBJlFrrw5zlZ l+ReBPE6ASNfF0vmuQIR4TQH542v+hy7ppOzo6EePd2pV/9woW2Dte1WHgNvEZ1d 2UIzI5cPsUdJZp7e9xqVsAKhTPHaLk3Zjd77UQ1BzZvJfrDCmVUZwqmJBYjiQN56 ecxFTxG0Q3syaCOnMHwgMr//26jRsN+41A+/o2ofjtFlTcLCpJM1SVjECuxLO4Tn qQD2eTuLcwD6LoyOoiSRStpp9NKNz8OiX5tNW9H2PsOwvem3gTV9OV4GGf832U3s 8TGEjTVWN+1sT+5DBBW/pLX8CwwdMUifmXHrseT6DOzBQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id ee1c2732 for ; Wed, 20 Jan 2021 01:10:29 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 9c98c204 for ; Wed, 20 Jan 2021 01:10:29 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id da85e6ee (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Wed, 20 Jan 2021 01:10:28 +0100 (CET) MIME-Version: 1.0 Date: Wed, 20 Jan 2021 00:10:28 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.14.0a From: "jgart" Message-ID: <05d44060a25f7de72cba88553153a332@dismail.de> Subject: Guix Environment Best Practices: Shell Hooks, Creating directories, and More To: help-guix@gnu.org Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.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: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=kzk53PuL; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: A68C6940416 X-Spam-Score: -3.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: Un8AVLFQCODs Hello Guix!=0A=0ACould someone share an example or advice on how to curre= ntly achieve the following nix shell hook with guix environment/manifests= /gexps/...: =0A=0A# define shell startup command=0A hooks =3D ''=0A #= this allows mix to work on the local directory=0A mkdir -p .nix-mix= =0A mkdir -p .nix-hex=0A export MIX_HOME=3D$PWD/.nix-mix=0A expo= rt HEX_HOME=3D$PWD/.nix-hex=0A export PATH=3D$MIX_HOME/bin:$PATH=0A = export PATH=3D$HEX_HOME/bin:$PATH=0A export LANG=3Den_US.UTF-8=0A = export ERL_AFLAGS=3D"-kernel shell_history enabled"=0A '';=0A=0Ain mkShe= ll {=0A buildInputs =3D inputs;=0A shellHook =3D hooks;=0A}=0A=0ATaken = from this blog post on using nix shell for developing elixir:=0A=0Ahttps:= //ghedam.at/15443/a-nix-shell-for-developing-elixir=0A=0AAny help is grea= tly appreciated.