mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
circumflex: install man page, shell completions; cleanup
Install the man page and shell completions. Additional cleanup: Remove less and ncurses from PATH. Upstream switched to a native comments viewer which does not depend on either. See commits [0] 56d20830bb and [1] 59d0206652 respectively. Skip building the 'gen-completions' package used for generating shell completions. These are part of the source tree under share/ and can be installed from there. This was, funnily enough, polluting the user environment with a binary of the same name. [0]:56d20830bb[1]:59d0206652
This commit is contained in:
parent
a5f168fbea
commit
d1dd7e6eb0
1 changed files with 13 additions and 11 deletions
|
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
less,
|
||||
ncurses,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
|
|
@ -20,16 +18,20 @@ buildGoModule (finalAttrs: {
|
|||
|
||||
vendorHash = "sha256-4YL0N8wA8igveYfeL4uZDY5YD1InW0iD3WWq1E/vIJs=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
excludedPackages = [
|
||||
"gen-completions"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/clx \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
less
|
||||
ncurses
|
||||
]
|
||||
}
|
||||
installManPage share/man/clx.1
|
||||
|
||||
installShellCompletion --bash share/completions/clx.bash
|
||||
installShellCompletion --fish share/completions/clx.fish
|
||||
installShellCompletion --zsh share/completions/_clx
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue