diff options
author | John Ericson <git@JohnEricson.me> | 2019-11-24 16:04:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-24 16:04:15 -0500 |
commit | 814f9104d721dcbf267720d8964095626b45321b (patch) | |
tree | fe67ce45a164e7977776c8d822684339ca4e37a6 /pkgs/development/misc | |
parent | 3e3918d02ab6b06e96d57b3cca3fe5d08c1afc85 (diff) | |
parent | 4aa1ffae041bb9c65eb3067e9dbaaa70710ed100 (diff) | |
download | nixpkgs-814f9104d721dcbf267720d8964095626b45321b.tar nixpkgs-814f9104d721dcbf267720d8964095626b45321b.tar.gz nixpkgs-814f9104d721dcbf267720d8964095626b45321b.tar.bz2 nixpkgs-814f9104d721dcbf267720d8964095626b45321b.tar.lz nixpkgs-814f9104d721dcbf267720d8964095626b45321b.tar.xz nixpkgs-814f9104d721dcbf267720d8964095626b45321b.tar.zst nixpkgs-814f9104d721dcbf267720d8964095626b45321b.zip |
Merge pull request #72657 from cleverca22/vc4
Initial implementation of vc4 cross-compile
Diffstat (limited to 'pkgs/development/misc')
-rw-r--r-- | pkgs/development/misc/vc4/newlib.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/misc/vc4/newlib.nix b/pkgs/development/misc/vc4/newlib.nix new file mode 100644 index 00000000000..e1a8b2eeaa6 --- /dev/null +++ b/pkgs/development/misc/vc4/newlib.nix @@ -0,0 +1,28 @@ +{ stdenv, texinfo, flex, bison, fetchFromGitHub, crossLibcStdenv, buildPackages }: + +crossLibcStdenv.mkDerivation { + name = "newlib"; + src = fetchFromGitHub { + owner = "itszor"; + repo = "newlib-vc4"; + rev = "89abe4a5263d216e923fbbc80495743ff269a510"; + sha256 = "131r4v0nn68flnqibjcvhsrys3hs89bn0i4vwmrzgjd7v1rbgqav"; + }; + dontUpdateAutotoolsGnuConfigScripts = true; + configurePlatforms = [ "target" ]; + enableParallelBuilding = true; + + nativeBuildInputs = [ texinfo flex bison ]; + depsBuildBuild = [ buildPackages.stdenv.cc ]; + # newlib expects CC to build for build platform, not host platform + preConfigure = '' + export CC=cc + ''; + + dontStrip = true; + + passthru = { + incdir = "/${stdenv.targetPlatform.config}/include"; + libdir = "/${stdenv.targetPlatform.config}/lib"; + }; +} |