5d26766cbf
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
47 lines
950 B
Nix
47 lines
950 B
Nix
{
|
|
stdenv,
|
|
texinfo,
|
|
flex,
|
|
bison,
|
|
fetchFromGitHub,
|
|
stdenvNoLibc,
|
|
buildPackages,
|
|
}:
|
|
|
|
stdenvNoLibc.mkDerivation {
|
|
pname = "vc4-newlib";
|
|
version = "0-unstable-2017-01-08";
|
|
|
|
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";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/itszor/newlib-vc4";
|
|
};
|
|
}
|