From 9c4653cf46562314fdb388cf7d3a9c178a7daeab Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Sat, 11 Feb 2017 09:42:12 +1300 Subject: [PATCH] bash-completion: call readlink without errors on Darwin --- pkgs/shells/bash-completion/default.nix | 4 ++++ 1 file changed, 4 insertions(+) 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";