New Package: Navi (#32895)

* feat: adds navi
* Update var/spack/repos/builtin/packages/navi/package.py

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
Daniel De Lucca 2022-09-30 03:53:53 -03:00 committed by GitHub
parent 2abbcaa49c
commit e31f8da021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,22 @@
# Copyright 2013-2022 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 Navi(Package):
"""An interactive cheatsheet tool for the command-line"""
homepage = "https://github.com/denisidoro/navi"
url = "https://github.com/denisidoro/navi/archive/refs/tags/v2.20.1.tar.gz"
maintainers = ["delucca"]
version("2.20.1", sha256="92644677dc46e13aa71b049c5946dede06a22064b3b1834f52944d50e3fdb950")
depends_on("rust")
def install(self, spec, prefix):
cargo = which("cargo")
cargo("install", "--root", prefix, "--path", ".")