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:
parent
33793dfab8
commit
c82896c292
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue