Skip to content

Commit 36e67d2

Browse files
committedNov 20, 2017
silver-searcher: patch bash completions location
1 parent 0ed7d4d commit 36e67d2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--- a/Makefile.am
2+
+++ b/Makefile.am
3+
@@ -9 +9 @@
4+
-bashcompdir = $(pkgdatadir)/completions
5+
+bashcompdir = $(datadir)/bash-completion/completions

‎pkgs/tools/text/silver-searcher/default.nix

+2-6
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@ stdenv.mkDerivation rec {
1111
sha256 = "0wcw4kyivb10m9b173183jrj46a0gisd35yqxi1mr9hw5l5dhkpa";
1212
};
1313

14+
patches = [ ./bash-completion.patch ];
15+
1416
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
1517

1618
nativeBuildInputs = [ autoreconfHook pkgconfig ];
1719
buildInputs = [ pcre zlib lzma ];
1820

19-
postInstall = ''
20-
mkdir -p $out/etc/bash_completion.d
21-
mv $out/share/the_silver_searcher/completions/ag.bashcomp.sh $out/etc/bash_completion.d
22-
rm -r $out/share/the_silver_searcher
23-
'';
24-
2521
meta = with stdenv.lib; {
2622
homepage = https://github.com/ggreer/the_silver_searcher/;
2723
description = "A code-searching tool similar to ack, but faster";

0 commit comments

Comments
 (0)
Please sign in to comment.