lib: Infer libc field of platform if not specified

This is especially useful when not cross compiling. It means we can
remove the `stdenv.isGlibc` predicate too.

Additionally, use this to simplify the logic to choose the
appropriate libiconv derivation.
This commit is contained in:
John Ericson
2017-05-22 00:25:02 -04:00
parent 2e7ec6fb70
commit c5c6606048
3 changed files with 19 additions and 12 deletions
-3
View File
@@ -402,9 +402,6 @@ let
|| system == "aarch64-linux"
|| system == "mips64el-linux";
isGNU = system == "i686-gnu"; # GNU/Hurd
isGlibc = isGNU # useful for `stdenvNative'
|| isLinux
|| system == "x86_64-kfreebsd-gnu";
isSunOS = system == "i686-solaris"
|| system == "x86_64-solaris";
isCygwin = system == "i686-cygwin"