diff options
author | Nick Novitski <nicknovitski@gmail.com> | 2017-02-11 09:42:12 +1300 |
---|---|---|
committer | Nick Novitski <nicknovitski@gmail.com> | 2017-02-11 09:42:12 +1300 |
commit | 9c4653cf46562314fdb388cf7d3a9c178a7daeab (patch) | |
tree | faf2585a293e879a595d82781179a19db1a5e696 /pkgs/shells | |
parent | dc75530f262f8d0ad6190e44c7271803516587b5 (diff) |
bash-completion: call readlink without errors on Darwin
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/bash-completion/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/shells/bash-completion/default.nix b/pkgs/shells/bash-completion/default.nix index 0c96c72ffd03..3ac1ca2172dd 100644 --- a/pkgs/shells/bash-completion/default.nix +++ b/pkgs/shells/bash-completion/default.nix @@ -11,6 +11,10 @@ stdenv.mkDerivation rec { doCheck = true; + prePatch = stdenv.lib.optionalString stdenv.isDarwin '' + sed -i -e 's/readlink -f/readlink/g' bash_completion completions/* + ''; + meta = with stdenv.lib; { homepage = https://github.com/scop/bash-completion; description = "Programmable completion for the bash shell"; |