blob: e08e9883cb31522337895780a9489c119e583518 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 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 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"
maintainers = ['jjwilke']
version('2.0.0', sha256="2a621ef10be5e52a1f543985d08354a2e6ee6532b5720e5f17ad6362cfd4adef")
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)
|