at 23.11-beta 32 lines 815 B view raw
1{ lib, stdenv, meson, ninja, fetchFromGitHub, nixosTests }: 2 3stdenv.mkDerivation { 4 pname = "qboot"; 5 version = "unstable-2020-04-23"; 6 7 src = fetchFromGitHub { 8 owner = "bonzini"; 9 repo = "qboot"; 10 rev = "de50b5931c08f5fba7039ddccfb249a5b3b0b18d"; 11 sha256 = "1d0h29zz535m0pq18k3aya93q7lqm2858mlcp8mlfkbq54n8c5d8"; 12 }; 13 14 nativeBuildInputs = [ meson ninja ]; 15 16 installPhase = '' 17 mkdir -p $out 18 cp bios.bin bios.bin.elf $out/. 19 ''; 20 21 hardeningDisable = [ "stackprotector" "pic" ]; 22 23 passthru.tests = { qboot = nixosTests.qboot; }; 24 25 meta = { 26 description = "A simple x86 firmware for booting Linux"; 27 homepage = "https://github.com/bonzini/qboot"; 28 license = lib.licenses.gpl2; 29 maintainers = with lib.maintainers; [ ]; 30 platforms = [ "x86_64-linux" "i686-linux" ]; 31 }; 32}