mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
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 = "riscv"; }; }
|
||||||
{ cpu = { family = "x86"; }; }
|
{ cpu = { family = "x86"; }; }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
isElf = { kernel.execFormat = execFormats.elf; };
|
||||||
|
isMacho = { kernel.execFormat = execFormats.macho; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# given two patterns, return a pattern which is their logical AND.
|
# given two patterns, return a pattern which is their logical AND.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue