1 { stdenv, texinfo, flex, bison, fetchFromGitHub, crossLibcStdenv, buildPackages }:
3 crossLibcStdenv.mkDerivation {
5 src = fetchFromGitHub {
8 rev = "89abe4a5263d216e923fbbc80495743ff269a510";
9 sha256 = "131r4v0nn68flnqibjcvhsrys3hs89bn0i4vwmrzgjd7v1rbgqav";
11 dontUpdateAutotoolsGnuConfigScripts = true;
12 configurePlatforms = [ "target" ];
13 enableParallelBuilding = true;
15 nativeBuildInputs = [ texinfo flex bison ];
16 depsBuildBuild = [ buildPackages.stdenv.cc ];
17 # newlib expects CC to build for build platform, not host platform
25 incdir = "/${stdenv.targetPlatform.config}/include";
26 libdir = "/${stdenv.targetPlatform.config}/lib";