mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
wrapBintoolsWith: Allow overriding extraBuildCommands
This commit is contained in:
parent
60771af5b6
commit
b1a8894a1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user