0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

nixos/binfmt: added assertion to prevent emulation of current system

should fix https://github.com/NixOS/nixpkgs/issues/218465
This commit is contained in:
Ex-32 2023-12-19 13:05:26 -06:00
parent 33793dfab8
commit c82896c292

View file

@ -281,7 +281,7 @@ in {
};
config = {
boot.binfmt.registrations = builtins.listToAttrs (map (system: {
boot.binfmt.registrations = builtins.listToAttrs (map (system: assert system != pkgs.system; {
name = system;
value = { config, ... }: let
interpreter = getEmulator system;