mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #178753 from regadas/add_trino_cli
trino-cli: init at 387
This commit is contained in:
commit
f81eb11bb4
@ -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";
|
||||
|
35
pkgs/development/tools/database/trino-cli/default.nix
Normal file
35
pkgs/development/tools/database/trino-cli/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user