2023-01-19 06:30:17 +08:00
|
|
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
|
2020-05-21 11:15:02 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2020-05-21 11:15:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Nvdimmsim(MakefilePackage):
|
|
|
|
"""
|
|
|
|
NVDIMMSim is a cycle-accurate non-volatile memory simulator
|
|
|
|
for devices such as NAND flash
|
|
|
|
"""
|
|
|
|
|
|
|
|
homepage = "https://github.com/slunk/NVDIMMSim"
|
|
|
|
git = "https://github.com/slunk/NVDIMMSim"
|
|
|
|
url = "https://github.com/jimstevens2001/NVDIMMSim/archive/v2.0.0.tar.gz"
|
|
|
|
|
2023-02-02 13:07:25 +08:00
|
|
|
maintainers("jjwilke")
|
2020-05-21 11:15:02 +08:00
|
|
|
|
2022-07-31 06:19:18 +08:00
|
|
|
version("2.0.0", sha256="2a621ef10be5e52a1f543985d08354a2e6ee6532b5720e5f17ad6362cfd4adef")
|
2020-05-21 11:15:02 +08:00
|
|
|
|
|
|
|
def build(self, spec, prefix):
|
|
|
|
with working_dir("src"):
|
|
|
|
if spec.satisfies("platform=darwin"):
|
|
|
|
make("libnvdsim.dylib")
|
|
|
|
else:
|
|
|
|
make("libnvdsim.so")
|
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
with working_dir("src"):
|
|
|
|
install_tree(".", prefix)
|