* Fix nix
* Check value in attribute
This commit is contained in:
Sam Grayson 2022-10-04 18:37:47 -06:00 committed by GitHub
parent fd911e7b2e
commit d1fe67b0bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ def installcheck(self):
@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)