{ buildGoModule , fetchFromGitHub , lib , nix-update-script , testers , symfony-cli }: buildGoModule rec { pname = "symfony-cli"; version = "5.7.7"; vendorHash = "sha256-R0/zJlK9T0iAfquROOWraoBHzd//rIIXNIps3GvGRvA="; src = fetchFromGitHub { owner = "symfony-cli"; repo = "symfony-cli"; rev = "v${version}"; hash = "sha256-ZoBMOArpsmUniVc7cqbB4UZZ6ujnVfHqRos0Mcr+E4Q="; }; ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.channel=stable" ]; postInstall = '' mv $out/bin/symfony-cli $out/bin/symfony ''; # Tests requires network access doCheck = false; passthru = { updateScript = nix-update-script { }; tests.version = testers.testVersion { inherit version; package = symfony-cli; command = "symfony version --no-ansi"; }; }; meta = { changelog = "https://github.com/symfony-cli/symfony-cli/releases/tag/v${version}"; description = "Symfony CLI"; homepage = "https://github.com/symfony-cli/symfony-cli"; license = lib.licenses.agpl3Plus; mainProgram = "symfony"; maintainers = with lib.maintainers; [ drupol ]; }; }