Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ buildGoModule, fetchFromGitHub, installShellFiles, lib, sqlcmd, testers}:
buildGoModule rec { pname = "sqlcmd"; version = "1.8.0";
src = fetchFromGitHub { repo = "go-sqlcmd"; owner = "microsoft"; rev = "v${version}"; sha256 = "sha256-QW8cDGXaj/10Y9UsU3WLalnFkf1+2ZBrFpf0Y5eTPUQ="; };
vendorHash = "sha256-DgIn01nUIX1+JigC1Jr5ZqG3tAYiOPUm6md/TdcD2U4="; 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 = "Command line tool for working with Microsoft SQL Server, Azure SQL Database, and Azure Synapse"; mainProgram = "sqlcmd"; 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 ]; };}