summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/exa/package.py
blob: 8488f3b3a11438df8731e5a2bb2e846afa77757b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2023 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.package 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.10.1", sha256="ff0fa0bfc4edef8bdbbb3cabe6fdbd5481a71abbbcc2159f402dea515353ae7c")
    version("0.9.0", sha256="96e743ffac0512a278de9ca3277183536ee8b691a46ff200ec27e28108fef783")

    depends_on("rust")

    def install(self, spec, prefix):
        cargo = which("cargo")
        cargo("install", "--root", prefix, "--path", ".")