Skip to content

Commit

Permalink
fixup! pick seabios changes from NixOS#341429
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Sep 30, 2024
1 parent 5e6f44b commit 4d5b1f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/virtualization/xen/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.lists.optional (!withInternalQEMU) "--with-system-qemu"

++ lib.lists.optional withSeaBIOS "--with-system-seabios=${seabios}/share/seabios"
++ lib.lists.optional withSeaBIOS "--with-system-seabios=${seabios.firmware}"
++ lib.lists.optional (!withInternalSeaBIOS && !withSeaBIOS) "--disable-seabios"

++ lib.lists.optional withOVMF "--with-system-ovmf=${OVMF.firmware}"
Expand Down
6 changes: 4 additions & 2 deletions pkgs/by-name/qu/qubes-seabios/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let
seavgabioses = concatStringsSep "," (map mkVgaBios ["bochs-display" "cirrus" "isavga" "qxl" "stdvga" "ramfb" "vmware" "virtio" "ati"]);

in
stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation (finalAttrs: {
name = "qubes-seabios";
inherit version;
unpackPhase = "true";
Expand All @@ -65,4 +65,6 @@ stdenvNoCC.mkDerivation {
cp {${seabioses}}/*.bin $out/share/seabios
cp {${seavgabioses}}/*.bin $out/share/seavgabios
'';
}

passthru.firmware = "${finalAttrs.finalPackage}/share/seabios/bios-256k.bin";
})

0 comments on commit 4d5b1f5

Please sign in to comment.