mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
e750461511
Spike is the RISC-V ISA simulator from the RISC-V project.
31 lines
708 B
Nix
31 lines
708 B
Nix
{ stdenv, fetchgit, dtc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spike";
|
|
version = "1.0.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/riscv/riscv-isa-sim.git";
|
|
rev = "v${version}";
|
|
sha256 = "1hcl01nj96s3rkz4mrq747s5lkw81lgdjdimb8b1b9h8qnida7ww";
|
|
};
|
|
|
|
nativeBuildInputs = [ dtc ];
|
|
enableParallelBuilding = true;
|
|
|
|
patchPhase = ''
|
|
patchShebangs scripts/*.sh
|
|
patchShebangs tests/ebreak.py
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A RISC-V ISA Simulator";
|
|
homepage = "https://github.com/riscv/riscv-isa-sim";
|
|
license = licenses.bsd3;
|
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
|
maintainers = with maintainers; [ blitz ];
|
|
};
|
|
}
|