2021-01-11 07:54:33 +00:00
|
|
|
{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
|
2018-09-29 07:21:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gremlin-console";
|
2023-01-31 05:34:38 +00:00
|
|
|
version = "3.6.2";
|
2018-09-29 07:21:09 +00:00
|
|
|
src = fetchzip {
|
2021-05-12 20:24:09 +00:00
|
|
|
url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
|
2023-01-31 05:34:38 +00:00
|
|
|
sha256 = "sha256-c7uwXqmMrWDYZ9CpGuVoo1e5yWHsoNd0zihZKdCTg7E=";
|
2018-09-29 07:21:09 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-09-29 07:21:09 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-28 08:00:07 +00:00
|
|
|
runHook preInstall
|
2018-09-29 07:21:09 +00:00
|
|
|
mkdir -p $out/opt
|
|
|
|
cp -r ext lib $out/opt/
|
|
|
|
install -D bin/gremlin.sh $out/opt/bin/gremlin-console
|
|
|
|
makeWrapper $out/opt/bin/gremlin-console $out/bin/gremlin-console \
|
|
|
|
--prefix PATH ":" "${openjdk}/bin/" \
|
|
|
|
--set CLASSPATH "$out/opt/lib/"
|
2021-03-28 08:00:07 +00:00
|
|
|
runHook postInstall
|
2018-09-29 07:21:09 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tinkerpop.apache.org/";
|
2018-09-29 07:21:09 +00:00
|
|
|
description = "Console of the Apache TinkerPop graph computing framework";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.lewo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|