4b7f2dd622
This obsoletes two of the included patches, one of them RISC-V specific, since they've been picked up by upstream. This build has been confirmed as being able to build and run an (extremely recent) RISC-V Fedora 28 Rawhide image, available from: https://fedorapeople.org/groups/risc-v/disk-images/ Signed-off-by: Austin Seipp <aseipp@pobox.com>
25 lines
903 B
Nix
25 lines
903 B
Nix
{ qemu, fetchFromGitHub, lib }: let
|
|
src = fetchFromGitHub {
|
|
owner = "riscv";
|
|
repo = "riscv-qemu";
|
|
rev = "f733c7b5f86147216e14aff90c03ccdd76056bef";
|
|
sha256 = "1ppr9qqwi7qqh8m6dgk1hrzg8zri240il27l67vfayd8ijagb9zq";
|
|
fetchSubmodules = true;
|
|
};
|
|
version = "2.11.92";
|
|
revCount = "60378";
|
|
shortRev = builtins.substring 0 9 src.rev;
|
|
targets = [ "riscv32-linux-user" "riscv32-softmmu"
|
|
"riscv64-linux-user" "riscv64-softmmu"
|
|
];
|
|
in lib.overrideDerivation qemu (orig: {
|
|
name = "${(builtins.parseDrvName qemu.name).name}-${version}pre${revCount}_${shortRev}";
|
|
inherit src;
|
|
# The pulseaudio and statfs patches are in 2.12.0+, which this is based on
|
|
patches = [
|
|
./force-uid0-on-9p.patch
|
|
./no-etc-install.patch
|
|
];
|
|
configureFlags = orig.configureFlags ++ [ "--target-list=${lib.concatStringsSep "," targets}" ];
|
|
postInstall = null;
|
|
})
|