2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, meson, ninja, fetchFromGitHub, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "qboot";
|
|
|
|
version = "unstable-2020-04-23";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bonzini";
|
|
|
|
repo = "qboot";
|
2020-05-29 06:06:01 +00:00
|
|
|
rev = "de50b5931c08f5fba7039ddccfb249a5b3b0b18d";
|
|
|
|
sha256 = "1d0h29zz535m0pq18k3aya93q7lqm2858mlcp8mlfkbq54n8c5d8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ meson ninja ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
2020-05-29 06:06:01 +00:00
|
|
|
cp bios.bin bios.bin.elf $out/.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
hardeningDisable = [ "stackprotector" "pic" ];
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
passthru.tests = { qboot = nixosTests.qboot; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A simple x86 firmware for booting Linux";
|
|
|
|
homepage = "https://github.com/bonzini/qboot";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-12-06 16:07:01 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|