hyperfine: new package (#26901)
This commit is contained in:
parent
e3b7eb418f
commit
dfcd5d4c81
23
var/spack/repos/builtin/packages/hyperfine/package.py
Normal file
23
var/spack/repos/builtin/packages/hyperfine/package.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright 2013-2021 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 Hyperfine(Package):
|
||||||
|
"""A command-line benchmarking tool."""
|
||||||
|
|
||||||
|
homepage = "https://github.com/sharkdp/hyperfine"
|
||||||
|
url = "https://github.com/sharkdp/hyperfine/archive/refs/tags/v1.12.0.tar.gz"
|
||||||
|
|
||||||
|
maintainers = ['michaelkuhn']
|
||||||
|
|
||||||
|
version('1.12.0', sha256='2120870a97e68fa3426eac5646a071c9646e96d2309220e3c258bf588e496454')
|
||||||
|
|
||||||
|
depends_on('rust@1.46:')
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
cargo = which('cargo')
|
||||||
|
cargo('install', '--root', prefix, '--path', '.')
|
Loading…
Reference in New Issue
Block a user