Merge pull request #146847 from r-burns/inspect-exec-format
lib/systems: add exec format inspection attrs
This commit is contained in:
commit
1bf1c7a244
1 changed files with 3 additions and 0 deletions
|
@ -98,6 +98,9 @@ rec {
|
|||
{ cpu = { family = "riscv"; }; }
|
||||
{ cpu = { family = "x86"; }; }
|
||||
];
|
||||
|
||||
isElf = { kernel.execFormat = execFormats.elf; };
|
||||
isMacho = { kernel.execFormat = execFormats.macho; };
|
||||
};
|
||||
|
||||
# given two patterns, return a pattern which is their logical AND.
|
||||
|
|
Loading…
Reference in a new issue