diff options
author | Julian Stecklina <js@alien8.de> | 2019-11-10 23:23:37 +0100 |
---|---|---|
committer | Julian Stecklina <js@alien8.de> | 2019-11-11 00:46:05 +0100 |
commit | e75046151174a0a69940709fd7e9270beb0b8f15 (patch) | |
tree | 1bdf33b1e93fdace123ffe305928b3049f522c58 /pkgs/applications/virtualization/spike | |
parent | 312b238674fae7c990bbeec15394b871042fa8c8 (diff) |
spike: init at 1.0.0
Spike is the RISC-V ISA simulator from the RISC-V project.
Diffstat (limited to 'pkgs/applications/virtualization/spike')
-rw-r--r-- | pkgs/applications/virtualization/spike/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/spike/default.nix b/pkgs/applications/virtualization/spike/default.nix new file mode 100644 index 000000000000..4dbb7fbe4a52 --- /dev/null +++ b/pkgs/applications/virtualization/spike/default.nix @@ -0,0 +1,30 @@ +{ 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 ]; + }; +} |