summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/spack/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/spack/package.py b/var/spack/repos/builtin/packages/spack/package.py
index d4dc3096a9..f3ea76a186 100644
--- a/var/spack/repos/builtin/packages/spack/package.py
+++ b/var/spack/repos/builtin/packages/spack/package.py
@@ -58,6 +58,12 @@ class Spack(Package):
depends_on('mercurial', type='run')
depends_on('subversion', type='run')
+ # Modules
+ depends_on('tcl', type='run')
+ depends_on('lmod', type='run')
+ # Spack 0.18 uses lmod's depends_on function, which was introduced in v7.5.12
+ depends_on('lmod@7.5.12:', type='run', when='@0.18:')
+
# Buildcache
# We just need the 'strings' executable, we don't want to install
# binutil's linkers.