1 { lib, stdenv, fetchurl, jre_headless, 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-ANrv3+hpRn00zFAu6FHltk6seQ4lP2esDIhsJrctfY0=";
21 install -D "$src" "$out/share/java/${jarfilename}"
23 makeWrapper ${jre_headless}/bin/java $out/bin/trino \
24 --add-flags "-jar $out/share/java/${jarfilename}"
30 description = "Trino CLI provides a terminal-based, interactive shell for running queries";
31 mainProgram = "trino";
32 homepage = "https://github.com/trinodb/trino";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ regadas cpcloud ];