From de2c043d5fdd4e0e26bdfe3a4b8e080daa05aa92 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 31 Aug 2015 12:09:03 +0200 Subject: [PATCH] ghc: install bash completion shipped in version 7.10.x and later Addresses one half of https://github.com/NixOS/nixpkgs/issues/9265. --- pkgs/development/compilers/ghc/7.10.2.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/ghc/7.10.2.nix b/pkgs/development/compilers/ghc/7.10.2.nix index 064610c3557b..834639380a50 100644 --- a/pkgs/development/compilers/ghc/7.10.2.nix +++ b/pkgs/development/compilers/ghc/7.10.2.nix @@ -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