diff options
author | Minijackson <minijackson@riseup.net> | 2022-07-25 12:23:13 +0200 |
---|---|---|
committer | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2022-08-28 21:46:44 +0200 |
commit | 345595a8b8defabac41cd61392125f47af322513 (patch) | |
tree | f9522a5364dafb85aa5c5b5537c2ad22e8f47593 /lib | |
parent | cdb0f02a36bb6474c5be13627ce735c9b326c6d0 (diff) | |
download | nixpkgs-345595a8b8defabac41cd61392125f47af322513.tar nixpkgs-345595a8b8defabac41cd61392125f47af322513.tar.gz nixpkgs-345595a8b8defabac41cd61392125f47af322513.tar.bz2 nixpkgs-345595a8b8defabac41cd61392125f47af322513.tar.lz nixpkgs-345595a8b8defabac41cd61392125f47af322513.tar.xz nixpkgs-345595a8b8defabac41cd61392125f47af322513.tar.zst nixpkgs-345595a8b8defabac41cd61392125f47af322513.zip |
lib/systems: add convenience isAbiElfv2 function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/inspect.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 833966e57a6..ee213438e04 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -13,6 +13,13 @@ rec { isx86_64 = { cpu = { family = "x86"; bits = 64; }; }; isPower = { cpu = { family = "power"; }; }; isPower64 = { cpu = { family = "power"; bits = 64; }; }; + # This ABI is the default in NixOS PowerPC64 BE, but not on mainline GCC, + # so it sometimes causes issues in certain packages that makes the wrong + # assumption on the used ABI. + isAbiElfv2 = [ + { abi = { abi = "elfv2"; }; } + { abi = { name = "musl"; }; cpu = { family = "power"; bits = 64; }; } + ]; isx86 = { cpu = { family = "x86"; }; }; isAarch32 = { cpu = { family = "arm"; bits = 32; }; }; isAarch64 = { cpu = { family = "arm"; bits = 64; }; }; |