pkgs/shells/bash/default.nix: don't install bash completion in non-interactive mode

This patch removes the kludge introduced in trunk to avoid a stdenv rebuild.

svn path=/nixpkgs/branches/stdenv-updates/; revision=29469
This commit is contained in:
Peter Simons 2011-09-24 08:06:47 +00:00
parent 0ad122f4e6
commit 6a1bde84dc

View File

@ -51,15 +51,7 @@ stdenv.mkDerivation rec {
postInstall = ''
# Add an `sh' -> `bash' symlink.
ln -s bash "$out/bin/sh"
'' + (if interactive then "" else ''
# Install the completion examples.
ensureDir "$out/etc"
cp -v "examples/complete/bash_completion" "$out/etc"
ensureDir "$out/etc/bash_completion.d"
cp -v "examples/complete/complete.gnu-longopt" "$out/etc/bash_completion.d"
'');
'';
meta = {
homepage = http://www.gnu.org/software/bash/;