2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, meson, ninja, fetchFromGitHub, nixosTests }:
|
2015-07-09 10:11:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-05-22 03:28:38 +01:00
|
|
|
name = "qboot-20200423";
|
2015-07-09 10:11:18 +01:00
|
|
|
|
2018-09-25 21:32:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bonzini";
|
|
|
|
repo = "qboot";
|
2020-05-22 03:28:38 +01:00
|
|
|
rev = "de50b5931c08f5fba7039ddccfb249a5b3b0b18d";
|
|
|
|
sha256 = "1d0h29zz535m0pq18k3aya93q7lqm2858mlcp8mlfkbq54n8c5d8";
|
2015-07-09 10:11:18 +01:00
|
|
|
};
|
|
|
|
|
2020-05-22 03:28:38 +01:00
|
|
|
nativeBuildInputs = [ meson ninja ];
|
|
|
|
|
2015-07-09 10:11:18 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
2020-05-22 03:28:38 +01:00
|
|
|
cp bios.bin bios.bin.elf $out/.
|
2016-04-03 12:41:30 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
hardeningDisable = [ "stackprotector" "pic" ];
|
2015-07-09 10:11:18 +01:00
|
|
|
|
2020-05-22 04:15:32 +01:00
|
|
|
passthru.tests = { qboot = nixosTests.qboot; };
|
|
|
|
|
2015-07-09 10:11:18 +01:00
|
|
|
meta = {
|
|
|
|
description = "A simple x86 firmware for booting Linux";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bonzini/qboot";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [ tstrobel ];
|
2015-07-09 10:11:18 +01:00
|
|
|
platforms = ["x86_64-linux" "i686-linux"];
|
|
|
|
};
|
|
|
|
}
|