Merge pull request #178753 from regadas/add_trino_cli

trino-cli: init at 387
This commit is contained in:
legendofmiracles 2022-06-27 15:51:35 -06:00 committed by GitHub
commit f81eb11bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 0 deletions

View File

@ -10677,6 +10677,12 @@
githubId = 1142322;
name = "Martin Lavoie";
};
regadas = {
email = "oss@regadas.email";
name = "Filipe Regadas";
github = "regadas";
githubId = 163899;
};
regnat = {
email = "regnat@regnat.ovh";
github = "regnat";

View File

@ -0,0 +1,35 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "trino-cli";
version = "387";
jarfilename = "${pname}-${version}-executable.jar";
nativeBuildInputs = [ makeWrapper ];
src = fetchurl {
url = "mirror://maven/io/trino/${pname}/${version}/${jarfilename}";
sha256 = "sha256-26TYtfxKLP3dW2uOoxc6rRnGXxnmbKG99xR0X7ntXDY=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -D "$src" "$out/share/java/${jarfilename}"
makeWrapper ${jre}/bin/java $out/bin/trino \
--add-flags "-jar $out/share/java/${jarfilename}"
runHook postInstall
'';
meta = with lib; {
description = "The Trino CLI provides a terminal-based, interactive shell for running queries";
homepage = "https://github.com/trinodb/trino";
license = licenses.asl20;
maintainers = [ maintainers.regadas ];
};
}

View File

@ -24132,6 +24132,8 @@ with pkgs;
trinity = callPackage ../os-specific/linux/trinity { };
trino-cli = callPackage ../development/tools/database/trino-cli { };
trinsic-cli = callPackage ../tools/admin/trinsic-cli {
inherit (darwin.apple_sdk.frameworks) Security;
};