ripgrep: improve robustness of build

This commit is contained in:
Cole Helbling 2020-03-19 23:47:20 -07:00
parent 857bf884f4
commit 21b5e7d6f6
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -30,9 +30,9 @@ rustPlatform.buildRustPackage rec {
++ (stdenv.lib.optional stdenv.isDarwin Security);
preFixup = ''
(cd target/release/build/ripgrep-*/out
installManPage rg.1
installShellCompletion rg.{bash,fish})
installManPage $releaseDir/build/ripgrep-*/out/rg.1
installShellCompletion $releaseDir/build/ripgrep-*/out/rg.{bash,fish}
installShellCompletion --zsh "$src/complete/_rg"
'';