2021-01-11 07:54:33 +00:00
|
|
|
{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
|
2018-09-29 08:21:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gremlin-console";
|
2020-11-12 13:47:30 +00:00
|
|
|
version = "3.4.8";
|
2018-09-29 08:21:09 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://www-eu.apache.org/dist/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
|
2020-11-12 13:47:30 +00:00
|
|
|
sha256 = "13ycr6ppyrz9rq7dasabjdk8lcsxdj3krb4j7d2jmbh2hij1rdvf";
|
2018-09-29 08:21:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
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-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://tinkerpop.apache.org/";
|
2018-09-29 08:21:09 +01:00
|
|
|
description = "Console of the Apache TinkerPop graph computing framework";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.lewo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|