symfony-cli: add completions and adopt
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
symfony-cli,
|
||||
nssTools,
|
||||
makeBinaryWrapper,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
@@ -39,15 +40,22 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
buildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir $out/libexec
|
||||
mv $out/bin/symfony-cli $out/libexec/symfony
|
||||
|
||||
makeBinaryWrapper $out/libexec/symfony $out/bin/symfony \
|
||||
--prefix PATH : ${lib.makeBinPath [ nssTools ]}
|
||||
|
||||
installShellCompletion --cmd symfony \
|
||||
--bash <($out/bin/symfony completion bash) \
|
||||
--fish <($out/bin/symfony completion fish) \
|
||||
--zsh <($out/bin/symfony completion zsh)
|
||||
'';
|
||||
|
||||
# Tests requires network access
|
||||
# Tests require network access
|
||||
doCheck = false;
|
||||
|
||||
passthru = {
|
||||
@@ -65,6 +73,6 @@ buildGoModule (finalAttrs: {
|
||||
homepage = "https://github.com/symfony-cli/symfony-cli";
|
||||
license = lib.licenses.agpl3Plus;
|
||||
mainProgram = "symfony";
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
maintainers = with lib.maintainers; [ patka ];
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user