summary refs log tree commit diff
path: root/pkgs/applications/virtualization/qboot/default.nix
blob: d770308239f822d2fd7a996c33a1432af8d9603e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
  name = "qboot-20170330";

  src = fetchFromGitHub {
    owner = "bonzini";
    repo = "qboot";
    rev = "ac9488f26528394856b94bda0797f5bd9c69a26a";
    sha256 = "0l83nbjndin1cbcimkqkiqr5df8d76cnhyk26rd3aygb2bf7cspy";
  };

  installPhase = ''
    mkdir -p $out
    cp bios.bin* $out/.
  '';

  hardeningDisable = [ "stackprotector" "pic" ];

  meta = {
    description = "A simple x86 firmware for booting Linux";
    homepage = "https://github.com/bonzini/qboot";
    license = stdenv.lib.licenses.gpl2;
    maintainers = with stdenv.lib.maintainers; [ tstrobel ];
    platforms = ["x86_64-linux" "i686-linux"];
  };
}