limine: disable zerocallusedregs on loongarch64/riscv64 (#441249)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user