ghc: install bash completion shipped in version 7.10.x and later

Addresses one half of https://github.com/NixOS/nixpkgs/issues/9265.
This commit is contained in:
Peter Simons 2015-08-31 12:09:03 +02:00
parent c7a9fa11c0
commit de2c043d5f

View File

@ -47,6 +47,9 @@ stdenv.mkDerivation rec {
stripDebugFlags = [ "-S" ] ++ stdenv.lib.optional (!stdenv.isDarwin) "--keep-file-symbols";
postInstall = ''
# Install the bash completion file.
install -D -m 444 utils/completion/ghc.bash $out/share/bash-completion/completions/ghc
# Patch scripts to include "readelf" and "cat" in $PATH.
for i in "$out/bin/"*; do
test ! -h $i || continue