ptags: Add `ctags` to the PATH

Signed-off-by: Pamplemousse <xav.maso@gmail.com>
master
Pamplemousse 2021-06-02 10:06:54 -07:00
parent b0798e7d4b
commit c103913661
1 changed files with 10 additions and 1 deletions

View File

@ -1,8 +1,9 @@
{ fetchFromGitHub
, cargo
, ctags
, lib
, makeWrapper
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
@ -18,6 +19,14 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1pz5hvn1iq26i8c2cmqavhnri8h0sn40khrxvcdkj9q47nsj5wcx";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
# `ctags` must be accessible in `PATH` for `ptags` to work.
wrapProgram "$out/bin/ptags" \
--prefix PATH : "${lib.makeBinPath [ ctags ]}"
'';
# Sanity check.
checkPhase = ''
$releaseDir/ptags --help > /dev/null