Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ buildGoModule, fetchFromGitHub, installShellFiles, lib, sqlcmd, testers}:
buildGoModule rec { pname = "sqlcmd"; version = "1.1.0";
src = fetchFromGitHub { repo = "go-sqlcmd"; owner = "microsoft"; rev = "v${version}"; sha256 = "sha256-sBOCUlhqXShcF+KA7NXaUEC6c5+Rz9zutGOw6i2FSsQ="; };
vendorHash = "sha256-1KnMFTadgTmHan2E/9+iHRPgakXi9F3tEOnuwGR+FXw="; proxyVendor = true;
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
subPackages = [ "cmd/modern" ];
nativeBuildInputs = [ installShellFiles ];
preCheck = '' export HOME=$(mktemp -d) '';
postInstall = '' mv $out/bin/modern $out/bin/sqlcmd
installShellCompletion --cmd sqlcmd \ --bash <($out/bin/sqlcmd completion bash) \ --fish <($out/bin/sqlcmd completion fish) \ --zsh <($out/bin/sqlcmd completion zsh) '';
passthru.tests.version = testers.testVersion { package = sqlcmd; command = "sqlcmd --version"; inherit version; };
meta = { description = "A command line tool for working with Microsoft SQL Server, Azure SQL Database, and Azure Synapse"; homepage = "https://github.com/microsoft/go-sqlcmd"; changelog = "https://github.com/microsoft/go-sqlcmd/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.ratsclub ]; };}