3
0
Fork 0
forked from mirrors/nixpkgs

add binutils to bash build for size

This commit is contained in:
Jude Taylor 2015-08-06 13:46:49 -07:00
parent 71756e741b
commit 9c153e2227

View file

@ -1,6 +1,7 @@
{ stdenv, fetchurl, readline ? null, interactive ? false, texinfo ? null, bison }:
{ stdenv, fetchurl, readline ? null, interactive ? false, texinfo ? null, binutils ? null, bison }:
assert interactive -> readline != null;
assert stdenv.isDarwin -> binutils != null;
let
version = "4.3";
@ -59,7 +60,8 @@ stdenv.mkDerivation rec {
# Note: Bison is needed because the patches above modify parse.y.
nativeBuildInputs = [bison]
++ stdenv.lib.optional (texinfo != null) texinfo
++ stdenv.lib.optional interactive readline;
++ stdenv.lib.optional interactive readline
++ stdenv.lib.optional stdenv.isDarwin binutils;
# Bash randomly fails to build because of a recursive invocation to
# build `version.h'.