From 91b03c3e0fed6b8996d43a1d6e8d662d18914d34 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Tue, 8 Jun 2021 08:58:47 +0200 Subject: [PATCH] =?UTF-8?q?nix-shell:=20Don=E2=80=99t=20set=20XDG=5FDATA?= =?UTF-8?q?=5FDIRS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it gets set by some dependencies of the shell, but confused interactive tools, so let’s unset this here. --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nix b/default.nix index 4ce376d9257..69c6cc06493 100644 --- a/default.nix +++ b/default.nix @@ -640,7 +640,11 @@ rec { )); shellHook = llvmEnv + '' + # Include our wrappers in the PATH export PATH="${toString ./bin}:$PATH" + # some cleanup of environment variables otherwise set by nix-shell + # that would be confusing in interactive use + unset XDG_DATA_DIRS ''; ESM=nixpkgs.sources.esm; TOMMATHSRC = nixpkgs.sources.libtommath;