Apply suggestions from code review

This commit is contained in:
Sandro 2023-01-26 13:26:36 +01:00 committed by Matthieu Coudron
parent 5b310f272b
commit 9b914fc679

View file

@ -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; {