From d796d1259b9ab177af6c0b8529d22004d636ffd6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 16 Dec 2023 14:14:53 -0800 Subject: [PATCH] nix: only add shellhook on linux --- nix/devShell.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/devShell.nix b/nix/devShell.nix index a9c264aa8..00418c0a8 100644 --- a/nix/devShell.nix +++ b/nix/devShell.nix @@ -145,7 +145,9 @@ in # it to be "portable" across the system. LD_LIBRARY_PATH = lib.makeLibraryPath rpathLibs; - shellHook = '' + # On Linux we need to setup the environment so that all GTK data + # is available (namely icons). + shellHook = lib.optionalString stdenv.isLinux '' # Minimal subset of env set by wrapGAppsHook4 for icons and global settings export XDG_DATA_DIRS=$XDG_DATA_DIRS:${hicolor-icon-theme}/share:${gnome.adwaita-icon-theme}/share export XDG_DATA_DIRS=$XDG_DATA_DIRS:$GSETTINGS_SCHEMAS_PATH # from glib setup hook