mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-21 08:21:24 +02:00
fix(WIP): qemu-user-static - too many GOT entries for -fpic, please recompile with -fPIC
This commit is contained in:
@@ -31,6 +31,17 @@ in
|
||||
# This enables the kernel to preload the emulator binaries when the binfmt registrations are added,
|
||||
# obviating the need to make the emulator binaries available inside chroots and chroot-like sandboxes.
|
||||
boot.binfmt.preferStaticEmulators = true; # required to work with podman
|
||||
nixpkgs.overlays = [
|
||||
(final: previous: {
|
||||
# https://github.com/NixOS/nixpkgs/issues/392673
|
||||
# aarch64-unknown-linux-musl-ld: (.text+0x484): warning: too many GOT entries for -fpic, please recompile with -fPIC
|
||||
nettle = previous.nettle.overrideAttrs (
|
||||
lib.optionalAttrs final.stdenv.hostPlatform.isStatic {
|
||||
CCPIC = "-fPIC";
|
||||
}
|
||||
);
|
||||
})
|
||||
];
|
||||
|
||||
# supported file systems, so we can mount any removable disks with these filesystems
|
||||
boot.supportedFilesystems = lib.mkForce [
|
||||
|
||||
Reference in New Issue
Block a user