diff options
author | Jude Taylor <me@jude.bio> | 2015-08-06 13:46:49 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-08-12 11:27:54 -0700 |
commit | 9c153e2227d3c66c645718355b0ed381f664afa5 (patch) | |
tree | 2222e916d7d9d09ab2fb88686cf19dbcc1228a31 /pkgs/shells | |
parent | 71756e741b677ff36239eb4e51c22d170362a780 (diff) |
add binutils to bash build for `size`
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/bash/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/shells/bash/default.nix b/pkgs/shells/bash/default.nix index ea65e1f63c8fc..60504ecaa9bc4 100644 --- a/pkgs/shells/bash/default.nix +++ b/pkgs/shells/bash/default.nix @@ -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'. |