sync with trunk

svn path=/nixpkgs/branches/stdenv-updates/; revision=29468
This commit is contained in:
Peter Simons
2011-09-24 08:04:47 +00:00
8 changed files with 52 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, readline ? null, interactive ? false, texinfo ? null, bison, bashCompletion ? null}:
{ stdenv, fetchurl, readline ? null, interactive ? false, texinfo ? null, bison }:
assert interactive -> readline != null;
@@ -52,10 +52,7 @@ stdenv.mkDerivation rec {
# Add an `sh' -> `bash' symlink.
ln -s bash "$out/bin/sh"
'' + (if interactive && bashCompletion != null then ''
ensureDir "$out/etc"
echo >"$out/etc/bash_completion" '. "${bashCompletion}/etc/bash_completion"'
'' else ''
'' + (if interactive then "" else ''
# Install the completion examples.
ensureDir "$out/etc"
cp -v "examples/complete/bash_completion" "$out/etc"