1 { lib, stdenv, fetchurl, jre, makeWrapper }:
3 stdenv.mkDerivation rec {
7 jarfilename = "${pname}-${version}-executable.jar";
9 nativeBuildInputs = [ makeWrapper ];
12 url = "mirror://maven/io/trino/${pname}/${version}/${jarfilename}";
13 sha256 = "sha256-yqTKXmcRgsSSr4KAZ2NV7FrCGIxCU/V14XFEZmUTj1s=";
21 install -D "$src" "$out/share/java/${jarfilename}"
23 makeWrapper ${jre}/bin/java $out/bin/trino \
24 --add-flags "-jar $out/share/java/${jarfilename}"
30 description = "The Trino CLI provides a terminal-based, interactive shell for running queries";
31 homepage = "https://github.com/trinodb/trino";
32 license = licenses.asl20;
33 maintainers = [ maintainers.regadas ];