{ buildGoModule, fetchFromGitHub, lib, installShellFiles }: buildGoModule rec { pname = "jx"; version = "2.1.149"; src = fetchFromGitHub { owner = "jenkins-x"; repo = "jx"; rev = "v${version}"; sha256 = "0jgny09wpfab8mkxkhv9swp1baqx3lxsx75a5i78cypkj6xadc69"; }; vendorSha256 = "1fswrf14nwjm0z8qqgdx236w7w1m451lyfinhx9pyp89fw2h5mv6"; doCheck = false; subPackages = [ "cmd/jx" ]; nativeBuildInputs = [ installShellFiles ]; buildFlagsArray = '' -ldflags= -s -w -X github.com/jenkins-x/jx/pkg/version.Version=${version} -X github.com/jenkins-x/jx/pkg/version.Revision=${src.rev} -X github.com/jenkins-x/jx/pkg/version.GitTreeState=clean ''; postInstall = '' for shell in bash zsh; do $out/bin/jx completion $shell > jx.$shell installShellCompletion jx.$shell done ''; meta = with lib; { description = "Command line tool for installing and using Jenkins X"; homepage = "https://jenkins-x.io"; longDescription = '' Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Jenkins, Knative Build, Prow, Skaffold and Helm. ''; license = licenses.asl20 ; maintainers = with maintainers; [ kalbasit ]; platforms = platforms.linux ++ platforms.darwin; }; }