summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDiego Magdaleno <38844659+DiegoMagdaleno@users.noreply.github.com>2020-04-27 19:39:09 -0500
committerGitHub <noreply@github.com>2020-04-27 19:39:09 -0500
commitcd568829981bf62767b986df6fe9ff40d50500e0 (patch)
tree552825c618c4c7f71b4bf6f578fe36fc7c951eb3 /var
parentb04b6e14490e4bdb61457741d52bded336751618 (diff)
downloadspack-cd568829981bf62767b986df6fe9ff40d50500e0.tar.gz
spack-cd568829981bf62767b986df6fe9ff40d50500e0.tar.bz2
spack-cd568829981bf62767b986df6fe9ff40d50500e0.tar.xz
spack-cd568829981bf62767b986df6fe9ff40d50500e0.zip
Add a new package Exa (#16126)
* Add new package exa * Format and fix a silly typo * Fix SHA256 SUM and make URL calculation dynamic * Remove unnecessary URL calculation * Update package.py * Keep the version on 1 line * Pass flake8 checks
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/exa/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/exa/package.py b/var/spack/repos/builtin/packages/exa/package.py
new file mode 100644
index 0000000000..e6a0fe39a4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/exa/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Exa(Package):
+ """exa is a replacement for ls written in Rust."""
+
+ homepage = 'https://the.exa.website'
+ url = 'https://github.com/ogham/exa/archive/v0.9.0.tar.gz'
+
+ version('0.9.0', sha256='96e743ffac0512a278de9ca3277183536ee8b691a46ff200ec27e28108fef783')
+
+ depends_on('rust')
+
+ def install(self, spec, prefix):
+ cargo = which('cargo')
+ cargo('install', '--root', prefix, '--path', '.')