-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.nix
34 lines (32 loc) · 1.04 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
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=";
};
});
riscvTests = final.pkgsCross.riscv64-embedded.stdenv.mkDerivation rec {
pname = "riscv-tests";
version = "55bbcc8c06637a31cc01970881ba8072838a9121";
src = final.fetchgit {
url = "https://github.com/riscv-software-src/riscv-tests.git";
rev = "${version}";
fetchSubmodules = true;
sha256 = "sha256-TcIU+WFQxPqAG7lvfKPgHm4CnBpTkosqe+fYOxS+J7I=";
};
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
'';
};
}