Skip to content

Instantly share code, notes, and snippets.

@pierrebeaucamp
Created November 23, 2017 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pierrebeaucamp/816df863705ebfabb900419c9ec60598 to your computer and use it in GitHub Desktop.
Save pierrebeaucamp/816df863705ebfabb900419c9ec60598 to your computer and use it in GitHub Desktop.
Risc-v Qemu on NixOS
with (import <nixpkgs> {});
stdenv.mkDerivation {
name = "qemu-riscv";
src = ./.;
buildInputs = [
alsaLib glib libaio libpulseaudio perl pixman pkgconfig python2 SDL zlib
];
hardeningDisable = [ "stackprotector" ];
configureFlags = [
"--smbd=smbd"
"--sysconfdir=/etc"
"--localstatedir=/var"
"--target-list=riscv64-softmmu,riscv32-softmmu,x86_64-softmmu"
"--enable-linux-aio"
"--audio-drv-list=alsa,pa,sdl"
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment