root: add setup-hook

This commit is contained in:
Dmitry Kalinkin 2016-09-18 04:45:10 -04:00
parent d5e24d3f80
commit 7b9deaba81
2 changed files with 11 additions and 0 deletions

View File

@ -63,6 +63,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
setupHook = ./setup-hook.sh;
meta = {
homepage = "https://root.cern.ch/";
description = "A data analysis framework";

View File

@ -0,0 +1,9 @@
thisroot () {
# Workaround thisroot.sh dependency on man
if [ -z "${MANPATH}" ]; then
MANPATH=:
fi
source @out@/bin/thisroot.sh
}
envHooks+=(thisroot)