Merge pull request #221858 from ratsclub/master

sqlcmd: init at 0.15.3

authored by

superherointj and committed by
GitHub
91d315c4 6cd98434

+57
+55
pkgs/development/tools/database/sqlcmd/default.nix
··· 1 + { buildGoModule 2 + , fetchFromGitHub 3 + , installShellFiles 4 + , lib 5 + , sqlcmd 6 + , testers 7 + }: 8 + 9 + buildGoModule rec { 10 + pname = "sqlcmd"; 11 + version = "0.15.3"; 12 + 13 + src = fetchFromGitHub { 14 + repo = "go-sqlcmd"; 15 + owner = "microsoft"; 16 + rev = "v${version}"; 17 + sha256 = "sha256-1CdZVh7pbupCNOE1ydgYEqX4rYo2LRddlNRNf0QjlN0="; 18 + }; 19 + 20 + vendorSha256 = "sha256-6JfxKzYAjSQ9JFuFGDUZ0ALS1D7f2LK3bP0Fbl2ivo0="; 21 + proxyVendor = true; 22 + 23 + ldflags = [ "-s" "-w" "-X main.version=${version}" ]; 24 + 25 + subPackages = [ "cmd/modern" ]; 26 + 27 + nativeBuildInputs = [ installShellFiles ]; 28 + 29 + preCheck = '' 30 + export HOME=$(mktemp -d) 31 + ''; 32 + 33 + postInstall = '' 34 + mv $out/bin/modern $out/bin/sqlcmd 35 + 36 + installShellCompletion --cmd sqlcmd \ 37 + --bash <($out/bin/sqlcmd completion bash) \ 38 + --fish <($out/bin/sqlcmd completion fish) \ 39 + --zsh <($out/bin/sqlcmd completion zsh) 40 + ''; 41 + 42 + passthru.tests.version = testers.testVersion { 43 + package = sqlcmd; 44 + command = "sqlcmd --version"; 45 + inherit version; 46 + }; 47 + 48 + meta = { 49 + description = "A command line tool for working with Microsoft SQL Server, Azure SQL Database, and Azure Synapse"; 50 + homepage = "https://github.com/microsoft/go-sqlcmd"; 51 + changelog = "https://github.com/microsoft/go-sqlcmd/releases/tag/v${version}"; 52 + license = lib.licenses.mit; 53 + maintainers = [ lib.maintainers.ratsclub ]; 54 + }; 55 + }
+2
pkgs/top-level/all-packages.nix
··· 18879 18879 18880 18880 sqlcheck = callPackage ../development/tools/database/sqlcheck { }; 18881 18881 18882 + sqlcmd = callPackage ../development/tools/database/sqlcmd { }; 18883 + 18882 18884 sqlitebrowser = libsForQt5.callPackage ../development/tools/database/sqlitebrowser { }; 18883 18885 18884 18886 sqlite-utils = with python3Packages; toPythonApplication sqlite-utils;