gremlin-server: init at 3.5.2

This commit is contained in:
Joshua Potter 2022-02-17 06:18:59 -05:00
parent b516e55d9d
commit 95431151db
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
stdenv.mkDerivation rec {
pname = "gremlin-server";
version = "3.5.2";
src = fetchzip {
url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-server-${version}-bin.zip";
sha256 = "sha256-XFI2PQnvIPYjkJhm73TPSpMqH4+/Qv5RxS5iWkfuBg0=";
};
nativeBuildInputs = [ makeWrapper ];
# Note you'll want to prefix any commands with LOG_DIR, PID_DIR, and RUN_DIR
# environment variables set to a writable director(y/ies).
installPhase = ''
runHook preInstall
mkdir -p $out/opt
cp -r conf ext lib scripts $out/opt/
install -D bin/gremlin-server.sh $out/opt/bin/gremlin-server
makeWrapper $out/opt/bin/gremlin-server $out/bin/gremlin-server \
--prefix PATH ":" "${openjdk}/bin/" \
--set CLASSPATH "$out/opt/lib/"
runHook postInstall
'';
meta = with lib; {
homepage = "https://tinkerpop.apache.org/";
description = "Server of the Apache TinkerPop graph computing framework";
license = licenses.asl20;
maintainers = [ maintainers.lewo ];
platforms = platforms.all;
};
}

View File

@ -1874,6 +1874,10 @@ with pkgs;
openjdk = openjdk11;
};
gremlin-server = callPackage ../applications/misc/gremlin-server {
openjdk = openjdk11;
};
grex = callPackage ../tools/misc/grex {
inherit (darwin.apple_sdk.frameworks) Security;
};