diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2018-05-09 23:33:31 -0400 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2018-05-09 23:39:23 -0400 |
commit | e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df (patch) | |
tree | 25b61bb0b4ef9f1323ee0a166a2b728ba5e87bea /lib | |
parent | 3fa0ba917742c0790ff5418de0db65d94ee8b82e (diff) | |
download | nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.tar nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.tar.gz nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.tar.bz2 nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.tar.lz nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.tar.xz nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.tar.zst nixpkgs-e42a7a5c0bdeb4c40921d319ae6a14f7e304e4df.zip |
lib/systems: Add uClibc just like MUSL
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/default.nix | 1 | ||||
-rw-r--r-- | lib/systems/inspect.nix | 1 | ||||
-rw-r--r-- | lib/systems/parse.nix | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index bd408e00bb1..9b930824609 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -29,6 +29,7 @@ rec { /**/ if final.isDarwin then "libSystem" else if final.isMinGW then "msvcrt" else if final.isMusl then "musl" + else if final.isUClibc then "uclibc" else if final.isAndroid then "bionic" else if final.isLinux /* default */ then "glibc" # TODO(@Ericson2314) think more about other operating systems diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 91ae2cd2557..6738ae3d441 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -36,6 +36,7 @@ rec { isAndroid = [ { abi = abis.android; } { abi = abis.androideabi; } ]; isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ]; + isUClibc = with abis; map (a: { abi = a; }) [ uclibc uclibceabi uclibceabihf ]; isKexecable = map (family: { kernel = kernels.linux; cpu.family = family; }) [ "x86" "arm" "aarch64" "mips" ]; diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index ffedd98c98d..7ba06f129db 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -193,6 +193,9 @@ rec { musleabi = {}; musleabihf = {}; musl = {}; + uclibceabihf = {}; + uclibceabi = {}; + uclibc = {}; unknown = {}; }; |