From 161d73c1639a3da02389137baa310883bd54221a Mon Sep 17 00:00:00 2001 From: c74d <8573dd@gmail.com> Date: Fri, 10 Mar 2017 07:12:16 +0000 Subject: [PATCH] ripgrep: install man-page Modify the `ripgrep` package to install the tool's manual page. I have tested this commit per nixpkgs manual section 11.1 ("Making patches"). --- pkgs/tools/text/ripgrep/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/text/ripgrep/default.nix b/pkgs/tools/text/ripgrep/default.nix index 7ba43e38f382..786bcaa5334f 100644 --- a/pkgs/tools/text/ripgrep/default.nix +++ b/pkgs/tools/text/ripgrep/default.nix @@ -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;