Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 texinfo, 4 flex, 5 bison, 6 fetchFromGitHub, 7 stdenvNoLibc, 8 buildPackages, 9}: 10 11stdenvNoLibc.mkDerivation { 12 name = "newlib"; 13 src = fetchFromGitHub { 14 owner = "itszor"; 15 repo = "newlib-vc4"; 16 rev = "89abe4a5263d216e923fbbc80495743ff269a510"; 17 sha256 = "131r4v0nn68flnqibjcvhsrys3hs89bn0i4vwmrzgjd7v1rbgqav"; 18 }; 19 dontUpdateAutotoolsGnuConfigScripts = true; 20 configurePlatforms = [ "target" ]; 21 enableParallelBuilding = true; 22 23 nativeBuildInputs = [ 24 texinfo 25 flex 26 bison 27 ]; 28 depsBuildBuild = [ buildPackages.stdenv.cc ]; 29 # newlib expects CC to build for build platform, not host platform 30 preConfigure = '' 31 export CC=cc 32 ''; 33 34 dontStrip = true; 35 36 passthru = { 37 incdir = "/${stdenv.targetPlatform.config}/include"; 38 libdir = "/${stdenv.targetPlatform.config}/lib"; 39 }; 40}