Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 846 B view raw
1{ 2 lib, 3 stdenv, 4 meson, 5 ninja, 6 fetchFromGitHub, 7 nixosTests, 8}: 9 10stdenv.mkDerivation { 11 pname = "qboot"; 12 version = "unstable-2020-04-23"; 13 14 src = fetchFromGitHub { 15 owner = "bonzini"; 16 repo = "qboot"; 17 rev = "de50b5931c08f5fba7039ddccfb249a5b3b0b18d"; 18 sha256 = "1d0h29zz535m0pq18k3aya93q7lqm2858mlcp8mlfkbq54n8c5d8"; 19 }; 20 21 nativeBuildInputs = [ 22 meson 23 ninja 24 ]; 25 26 installPhase = '' 27 mkdir -p $out 28 cp bios.bin bios.bin.elf $out/. 29 ''; 30 31 hardeningDisable = [ 32 "stackprotector" 33 "pic" 34 ]; 35 36 passthru.tests = { 37 qboot = nixosTests.qboot; 38 }; 39 40 meta = { 41 description = "Simple x86 firmware for booting Linux"; 42 homepage = "https://github.com/bonzini/qboot"; 43 license = lib.licenses.gpl2; 44 maintainers = [ ]; 45 platforms = [ 46 "x86_64-linux" 47 "i686-linux" 48 ]; 49 }; 50}