limine: disable zerocallusedregs on loongarch64/riscv64 (#441249)

This commit is contained in:
Masum Reza
2025-10-24 02:08:15 +00:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -22,6 +22,13 @@ let
|| (if targets == [ ] then stdenv.hostPlatform.isx86_64 else (builtins.elem "x86_64" targets))
|| enableAll;
missingZerocallusedregs =
(
if targets == [ ] then stdenv.hostPlatform.isLoongArch64 else (builtins.elem "loongarch64" targets)
)
|| (if targets == [ ] then stdenv.hostPlatform.isRiscV64 else (builtins.elem "riscv64" targets))
|| enableAll;
biosSupport' = biosSupport && hasX86;
pxeSupport' = pxeSupport && hasX86;
@@ -52,6 +59,10 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
hardeningDisable = lib.optionals missingZerocallusedregs [
"zerocallusedregs"
];
nativeBuildInputs = [
llvmPackages.libllvm
llvmPackages.lld
+2
View File
@@ -3197,6 +3197,8 @@ with pkgs;
gtk3 = if stdenv.hostPlatform.isDarwin then gtk3-x11 else gtk3;
};
limine-full = limine.override { enableAll = true; };
liquidsoap = callPackage ../tools/audio/liquidsoap/full.nix {
ffmpeg = ffmpeg_6-full;
ocamlPackages = ocaml-ng.ocamlPackages_4_14;