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:
parent
0ad122f4e6
commit
6a1bde84dc
@ -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/;
|
||||
|
Loading…
Reference in New Issue
Block a user