mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Apply suggestions from code review
This commit is contained in:
parent
5b310f272b
commit
9b914fc679
@ -22,16 +22,14 @@ buildGoModule rec {
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
postInstall = ''
|
||||
# create shell completions before wrapProgram so that lab detects the right
|
||||
# path for itself
|
||||
# create shell completions before wrapProgram so that lab detects the right path for itself
|
||||
installShellCompletion --cmd lab \
|
||||
--bash <($out/bin/lab completion bash) \
|
||||
--fish <($out/bin/lab completion fish) \
|
||||
--zsh <($out/bin/lab completion zsh)
|
||||
# make xdg-open overrideable at runtime
|
||||
wrapProgram $out/bin/lab \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ git ]}" \
|
||||
--suffix PATH ":" "${lib.makeBinPath [ xdg-utils ]}"
|
||||
--suffix PATH ":" "${lib.makeBinPath [ git xdg-utils ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user