root: add setup-hook
This commit is contained in:
parent
d5e24d3f80
commit
7b9deaba81
@ -63,6 +63,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = {
|
||||
homepage = "https://root.cern.ch/";
|
||||
description = "A data analysis framework";
|
||||
|
9
pkgs/applications/science/misc/root/setup-hook.sh
Normal file
9
pkgs/applications/science/misc/root/setup-hook.sh
Normal 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)
|
Loading…
Reference in New Issue
Block a user