1 { fetchzip, lib, stdenv, makeWrapper, openjdk }:
2 stdenv.mkDerivation rec {
3 pname = "gremlin-server";
6 url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-server-${version}-bin.zip";
7 sha256 = "sha256-cS7R7Raz5tkrr5DNeW7jbEYDee2OgE4htTXJRnqXlqI=";
10 nativeBuildInputs = [ makeWrapper ];
12 # Note you'll want to prefix any commands with LOG_DIR, PID_DIR, and RUN_DIR
13 # environment variables set to a writable director(y/ies).
18 cp -r conf ext lib scripts $out/opt/
19 install -D bin/gremlin-server.sh $out/opt/bin/gremlin-server
20 makeWrapper $out/opt/bin/gremlin-server $out/bin/gremlin-server \
21 --prefix PATH ":" "${openjdk}/bin/" \
22 --set CLASSPATH "$out/opt/lib/"
27 homepage = "https://tinkerpop.apache.org/";
28 description = "Server of the Apache TinkerPop graph computing framework";
29 license = licenses.asl20;
30 maintainers = [ maintainers.jrpotter ];
31 platforms = platforms.all;
32 mainProgram = "gremlin-server";