1{ stdenv, fetchgit }:
2
3stdenv.mkDerivation {
4 name = "qboot-pre-release";
5
6 src = fetchgit {
7 url = "https://github.com/yangchengwork/qboot";
8 rev = "b2bdaf4c878ef34f309c8c79613fabd1b9c4bf75";
9 sha256 = "00f24125733d24713880e430f409d6ded416286d209c9fabb45541311b01cf8d";
10 };
11
12 installPhase = ''
13 mkdir -p $out
14 cp bios.bin* $out/.
15 '';
16
17 hardeningDisable = [ "stackprotector" "pic" ];
18
19 meta = {
20 description = "A simple x86 firmware for booting Linux";
21 homepage = https://github.com/bonzini/qboot;
22 license = stdenv.lib.licenses.gpl2;
23 maintainers = with stdenv.lib.maintainers; [ tstrobel ];
24 platforms = ["x86_64-linux" "i686-linux"];
25 };
26}