File tree 2 files changed +7
-6
lines changed
pkgs/tools/text/silver-searcher
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change
1
+ --- a/Makefile.am
2
+ +++ b/Makefile.am
3
+ @@ -9 +9 @@
4
+ - bashcompdir = $(pkgdatadir)/completions
5
+ + bashcompdir = $(datadir)/bash-completion/completions
Original file line number Diff line number Diff line change @@ -11,17 +11,13 @@ stdenv.mkDerivation rec {
11
11
sha256 = "0wcw4kyivb10m9b173183jrj46a0gisd35yqxi1mr9hw5l5dhkpa" ;
12
12
} ;
13
13
14
+ patches = [ ./bash-completion.patch ] ;
15
+
14
16
NIX_LDFLAGS = stdenv . lib . optionalString stdenv . isLinux "-lgcc_s" ;
15
17
16
18
nativeBuildInputs = [ autoreconfHook pkgconfig ] ;
17
19
buildInputs = [ pcre zlib lzma ] ;
18
20
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
-
25
21
meta = with stdenv . lib ; {
26
22
homepage = https://github.com/ggreer/the_silver_searcher/ ;
27
23
description = "A code-searching tool similar to ack, but faster" ;
You can’t perform that action at this time.
0 commit comments