-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.nix
49 lines (49 loc) · 1.55 KB
/
overlay.nix
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
final: prev: {
mill = prev.mill.overrideAttrs (oldAttrs: rec {
version = "0.11.1";
src = prev.fetchurl {
url = "https://github.com/com-lihaoyi/mill/releases/download/${version}/${version}-assembly";
hash = "sha256-qG+Ddn0BHUZX1VX5hO84exgRz8YuUgYF/fH6MmgkrXE=";
};
});
# spike compiles fine on darwin-aarch64
spike = prev.spike.overrideAttrs (oldAttrs: rec {
version = "0.11.1";
src = prev.fetchFromGitHub {
owner = "riscv";
repo = "riscv-isa-sim";
rev = "de5094a1a901d77ff44f89b38e00fefa15d4018e";
sha256 = "sha256-mAgR2VzDgeuIdmPEgrb+MaA89BnWfmNanOVidqn0cgc=";
};
meta = with prev.lib; {
platforms = prev.lib.platforms.all;
};
});
# TODO: fix riscv tests compilation in darwin
#
# riscvTests = final.pkgsCross.riscv64-embedded.stdenv.mkDerivation rec {
# pname = "riscv-tests";
# version = "f2f748ebb9cf8ea049103f85c4cbf7e8a2927b16";
# src = final.fetchgit {
# url = "https://github.com/riscv-software-src/riscv-tests.git";
# rev = "${version}";
# fetchSubmodules = true;
# sha256 = "sha256-E3RfrP+PFIYy9c/pY04jYPxeGpnfgWwjV8iwL5+s+9w=";
# };
#
# enableParallelBuilding = true;
#
# configureFlags = [
# # to match rocket-tools path
# "--prefix=${placeholder "out"}/riscv64-unknown-elf"
# ];
# buildPhase = "make RISCV_PREFIX=riscv64-none-elf-";
# installPhase = ''
# runHook preInstall
# make install
# mkdir -p $out/debug/
# cp debug/*.py $out/debug/
# runHook postInstall
# '';
# };
}