ptags: Add ctags
to the PATH
Signed-off-by: Pamplemousse <xav.maso@gmail.com>
This commit is contained in:
parent
b0798e7d4b
commit
c103913661
|
@ -1,8 +1,9 @@
|
||||||
{ fetchFromGitHub
|
{ fetchFromGitHub
|
||||||
, cargo
|
, cargo
|
||||||
|
, ctags
|
||||||
, lib
|
, lib
|
||||||
|
, makeWrapper
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
@ -18,6 +19,14 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "1pz5hvn1iq26i8c2cmqavhnri8h0sn40khrxvcdkj9q47nsj5wcx";
|
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.
|
# Sanity check.
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
$releaseDir/ptags --help > /dev/null
|
$releaseDir/ptags --help > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue