wrapBintoolsWith: Allow overriding extraBuildCommands

This commit is contained in:
Ken Micklas 2018-04-16 19:55:33 -04:00
parent 60771af5b6
commit b1a8894a1c

View File

@ -6916,15 +6916,14 @@ with pkgs;
libc = if targetPlatform != hostPlatform then libcCross else stdenv.cc.libc;
};
wrapBintoolsWith = { bintools, libc }: bintoolsWrapperFun {
wrapBintoolsWith = { bintools, libc, extraBuildCommands ? "" }: bintoolsWrapperFun {
nativeTools = targetPlatform == hostPlatform && stdenv.cc.nativeTools or false;
nativeLibc = targetPlatform == hostPlatform && stdenv.cc.nativeLibc or false;
nativePrefix = stdenv.cc.nativePrefix or "";
noLibc = (libc == null);
inherit bintools libc;
extraBuildCommands = "";
inherit bintools libc extraBuildCommands;
};
# prolog