Skip to content

Commit

Permalink
ripgrep: install man-page
Browse files Browse the repository at this point in the history
Modify the `ripgrep` package to install the tool's manual page.

I have tested this commit per nixpkgs manual section 11.1 ("Making
patches").

(cherry picked from commit a856dd50b5e9d7f4de1acd158c4ae548f6de86be)
  • Loading branch information
8573 authored and Mic92 committed Mar 12, 2017
1 parent a99e4f2 commit d44bf4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/tools/text/ripgrep/default.nix
Expand Up @@ -15,6 +15,11 @@ buildRustPackage rec {

depsSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";

preFixup = ''
mkdir -p "$out/man/man1"
cp "$src/doc/rg.1" "$out/man/man1"
'';

meta = with stdenv.lib; {
description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
homepage = https://github.com/BurntSushi/ripgrep;
Expand Down

0 comments on commit d44bf4c

Please sign in to comment.