Merge pull request #125402 from Pamplemousse/ptags
This commit is contained in:
commit
50aeda3131
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue