summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Grayson <sam@samgrayson.me>2022-10-04 18:37:47 -0600
committerGitHub <noreply@github.com>2022-10-04 18:37:47 -0600
commitd1fe67b0bc194ebf7a0cbfaa8d91f92274fb6a18 (patch)
treee320b21fc28fc6bfdffeef6283a86ae7d678c808
parentfd911e7b2eb530b76d8baed21923e5f685783995 (diff)
downloadspack-d1fe67b0bc194ebf7a0cbfaa8d91f92274fb6a18.tar.gz
spack-d1fe67b0bc194ebf7a0cbfaa8d91f92274fb6a18.tar.bz2
spack-d1fe67b0bc194ebf7a0cbfaa8d91f92274fb6a18.tar.xz
spack-d1fe67b0bc194ebf7a0cbfaa8d91f92274fb6a18.zip
nix: Fix #32994 (#32995)
* Fix nix * Check value in attribute
-rw-r--r--var/spack/repos/builtin/packages/nix/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/nix/package.py b/var/spack/repos/builtin/packages/nix/package.py
index 1ea8ab6ec2..6e87dfba69 100644
--- a/var/spack/repos/builtin/packages/nix/package.py
+++ b/var/spack/repos/builtin/packages/nix/package.py
@@ -16,6 +16,7 @@ class Nix(AutotoolsPackage):
homepage = "https://nixos.org/nix"
url = "https://github.com/NixOS/nix/archive/2.3.15.zip"
+ maintainers = ["charmoniumq"]
version("2.3.15", sha256="7bf04e47960e7895655ad40461f2cf8038b97e98165672db7a7ac1990fc77a22")
version("2.2.1", sha256="b591664dd1b04a8f197407d445799ece41140a3117bcbdf8e3c5e94cd3f59854")
@@ -109,7 +110,7 @@ class Nix(AutotoolsPackage):
@run_after("install")
def installcheck_clean(self):
- if self.test_path:
+ if hasattr(self, "test_path") and self.test_path:
for (root, dirs, files) in os.walk(self.test_path, topdown=True):
os.chmod(root, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
remove_linked_tree(self.test_path)