mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 22:20:30 +03:00
nixos/netboot: only install syslinux on platforms where it's available
Instead of maintaining an inevitably incomplete list of unsupported architectures. I discovered this while building for armv7-linux (32-bit ARM).
This commit is contained in:
parent
ea1b4c0094
commit
83b38c6d30
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ with lib;
|
|||
|
||||
# !!! Hack - attributes expected by other modules.
|
||||
environment.systemPackages = [ pkgs.grub2_efi ]
|
||||
++ (lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [pkgs.grub2 pkgs.syslinux]);
|
||||
++ (lib.optionals (lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.syslinux)
|
||||
[pkgs.grub2 pkgs.syslinux]);
|
||||
|
||||
fileSystems."/" = mkImageMediaOverride
|
||||
{ fsType = "tmpfs";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue