From 0fe6d6f6b9ab4b512469554b0c4d7520666377a6 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 5 Sep 2022 18:47:48 -0400 Subject: [PATCH] root: populate ROOT_INCLUDE_PATH via the setupHook --- pkgs/applications/science/misc/root/setup-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/science/misc/root/setup-hook.sh b/pkgs/applications/science/misc/root/setup-hook.sh index b26cf9b779f8..34c9bfdcebbd 100644 --- a/pkgs/applications/science/misc/root/setup-hook.sh +++ b/pkgs/applications/science/misc/root/setup-hook.sh @@ -11,3 +11,9 @@ thisroot () { } postHooks+=(thisroot) + +addRootInludePath() { + addToSearchPath ROOT_INCLUDE_PATH $1/include +} + +addEnvHooks "$targetOffset" addRootInludePath