1 { lib, stdenv, meson, ninja, fetchFromGitHub, nixosTests }:
5 version = "unstable-2020-04-23";
7 src = fetchFromGitHub {
10 rev = "de50b5931c08f5fba7039ddccfb249a5b3b0b18d";
11 sha256 = "1d0h29zz535m0pq18k3aya93q7lqm2858mlcp8mlfkbq54n8c5d8";
14 nativeBuildInputs = [ meson ninja ];
18 cp bios.bin bios.bin.elf $out/.
21 hardeningDisable = [ "stackprotector" "pic" ];
23 passthru.tests = { qboot = nixosTests.qboot; };
26 description = "Simple x86 firmware for booting Linux";
27 homepage = "https://github.com/bonzini/qboot";
28 license = lib.licenses.gpl2;
30 platforms = [ "x86_64-linux" "i686-linux" ];