ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib, stdenv, fetchgit, acpica-tools, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "seabios";
|
|
version = "1.16.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://git.seabios.org/seabios.git";
|
|
rev = "rel-${version}";
|
|
sha256 = "0acal1rr7sya86wlhw2mgimabwhjnr0y1pl5zxwb79j8k1w1r8sh";
|
|
};
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
|
|
buildInputs = [ acpica-tools ];
|
|
|
|
strictDeps = true;
|
|
|
|
hardeningDisable = [ "pic" "stackprotector" "fortify" ];
|
|
|
|
configurePhase = ''
|
|
# build SeaBIOS for CSM
|
|
cat > .config << EOF
|
|
CONFIG_CSM=y
|
|
CONFIG_QEMU_HARDWARE=y
|
|
CONFIG_PERMIT_UNALIGNED_PCIROM=y
|
|
EOF
|
|
|
|
make olddefconfig
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp out/Csm16.bin $out/Csm16.bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open source implementation of a 16bit X86 BIOS";
|
|
longDescription = ''
|
|
SeaBIOS is an open source implementation of a 16bit X86 BIOS.
|
|
It can run in an emulator or it can run natively on X86 hardware with the use of coreboot.
|
|
SeaBIOS is the default BIOS for QEMU and KVM.
|
|
'';
|
|
homepage = "http://www.seabios.org";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
}
|