Commit a2f33a4b authored by Anderson Torres's avatar Anderson Torres
Browse files

seabios: nixfmt-rfc-style

parent b12b45ea
Loading
Loading
Loading
Loading
+33 −23
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchgit
, acpica-tools
, python3
, writeText
{
  lib,
  acpica-tools,
  fetchgit,
  python3,
  stdenv,
  writeText,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -16,7 +17,10 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-hWemj83cxdY8p+Jhkh5GcPvI0Sy5aKYZJCsKDjHTUUk=";
  };

  outputs = [ "out" "doc" ];
  outputs = [
    "out"
    "doc"
  ];

  nativeBuildInputs = [ python3 ];

@@ -29,17 +33,25 @@ stdenv.mkDerivation (finalAttrs: {
    "EXTRAVERSION=\"-nixpkgs\""
  ];

  hardeningDisable = [ "pic" "stackprotector" "fortify" ];
  hardeningDisable = [
    "fortify"
    "pic"
    "stackprotector"
  ];

  postConfigure = let
    config = writeText "config.txt" (lib.generators.toKeyValue { } {
  postConfigure =
    let
      config = writeText "config.txt" (
        lib.generators.toKeyValue { } {
          # SeaBIOS with CSM (Compatible Support Module) support; learn more at
          # https://www.electronicshub.org/what-is-csm-bios/
          "CONFIG_CSM" = "y";
          "CONFIG_PERMIT_UNALIGNED_PCIROM" = "y";
          "CONFIG_QEMU_HARDWARE" = "y";
    });
  in ''
        }
      );
    in
    ''
      cp ${config} .config
      make olddefconfig
    '';
@@ -64,9 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
    '';
    license = with lib.licenses; [ lgpl3Plus ];
    maintainers = with lib.maintainers; [ AndersonTorres ];
    platforms = lib.systems.inspect.patternLogicalAnd
      lib.systems.inspect.patterns.isUnix
      lib.systems.inspect.patterns.isx86;
    platforms = lib.systems.inspect.patternLogicalAnd lib.systems.inspect.patterns.isUnix lib.systems.inspect.patterns.isx86;
    badPlatforms = [ lib.systems.inspect.patterns.isDarwin ];
  };
})