-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
19 lines (17 loc) · 717 Bytes
/
shell.nix
File metadata and controls
19 lines (17 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
with import (builtins.fetchTarball {
# nixos-unstable on 2020-05-14
url = "https://github.com/NixOS/nixpkgs/tarball/8ba41a1e14961fe43523f29b8b39acb569b70e72";
sha256 = "0c2wn7si8vcx0yqwm92dpry8zqjglj9dfrvmww6ha6ihnjl6mfhh";
}) {};
mkShell rec {
buildInputs = [ qemu ];
shellHook = ''
dd if=/dev/zero of=hdd.img bs=1M count=32 status=none
alias xgdb='${import ./cross-utils/gdb}/bin/riscv64-gdb'
alias xobjdump='${import ./cross-utils/binutils}/riscv64-elf/bin/objdump'
export QEMU_EXE=${qemu}/bin/qemu-system-riscv64
echo "Check if you have a recent-ish (as of March 2020) master build of zig installed."
echo "You and I both know that it's not stable."
echo Godspeed.
'';
}