a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
31 lines
967 B
Nix
31 lines
967 B
Nix
{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gremlin-console";
|
|
version = "3.6.2";
|
|
src = fetchzip {
|
|
url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
|
|
sha256 = "sha256-c7uwXqmMrWDYZ9CpGuVoo1e5yWHsoNd0zihZKdCTg7E=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
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/"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://tinkerpop.apache.org/";
|
|
description = "Console of the Apache TinkerPop graph computing framework";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.lewo ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|