summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/direnv/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/direnv/package.py')
-rw-r--r--var/spack/repos/builtin/packages/direnv/package.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/var/spack/repos/builtin/packages/direnv/package.py b/var/spack/repos/builtin/packages/direnv/package.py
index 98fdab72a2..58c8807424 100644
--- a/var/spack/repos/builtin/packages/direnv/package.py
+++ b/var/spack/repos/builtin/packages/direnv/package.py
@@ -6,7 +6,7 @@
from spack.package import *
-class Direnv(Package):
+class Direnv(GoPackage):
"""direnv is an environment switcher for the shell."""
homepage = "https://direnv.net/"
@@ -16,6 +16,8 @@ class Direnv(Package):
license("MIT")
+ version("2.35.0", sha256="a7aaec49d1b305f0745dad364af967fb3dc9bb5befc9f29d268d528b5a474e57")
+ version("2.34.0", sha256="3d7067e71500e95d69eac86a271a6b6fc3f2f2817ba0e9a589524bf3e73e007c")
version("2.33.0", sha256="8ef18051aa6bdcd6b59f04f02acdd0b78849b8ddbdbd372d4957af7889c903ea")
version("2.32.3", sha256="c66f6d1000f28f919c6106b5dcdd0a0e54fb553602c63c60bf59d9bbdf8bd33c")
version("2.32.2", sha256="352b3a65e8945d13caba92e13e5666e1854d41749aca2e230938ac6c64fa8ef9")
@@ -26,16 +28,4 @@ class Direnv(Package):
version("2.11.3", sha256="2d34103a7f9645059270763a0cfe82085f6d9fe61b2a85aca558689df0e7b006")
depends_on("go@1.16:", type="build", when="@2.28:")
- depends_on("go", type="build")
-
- phases = ["build", "install"]
-
- def setup_build_environment(self, env):
- # Point GOPATH at the top of the staging dir for the build step.
- env.prepend_path("GOPATH", self.stage.path)
-
- def build(self, spec, prefix):
- make()
-
- def install(self, spec, prefix):
- make("install", "PREFIX=%s" % prefix)
+ depends_on("go@1.20:", type="build", when="@2.33:")