fix: qemu-user-static on aarch64 - disable pie

This commit is contained in:
Ryan Yin
2025-09-24 14:30:04 +08:00
parent 553e8d16e5
commit 6f09e34c21
@@ -41,6 +41,15 @@ in
} }
); );
}) })
# https://github.com/NixOS/nixpkgs/issues/366902
(final: prev: {
qemu-user = prev.qemu-user.overrideAttrs (
old:
lib.optionalAttrs final.stdenv.hostPlatform.isStatic {
configureFlags = old.configureFlags ++ [ "--disable-pie" ];
}
);
})
]; ];
# supported file systems, so we can mount any removable disks with these filesystems # supported file systems, so we can mount any removable disks with these filesystems