c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
32 lines
1,004 B
Nix
32 lines
1,004 B
Nix
{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gremlin-console";
|
|
version = "3.7.1";
|
|
src = fetchzip {
|
|
url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
|
|
sha256 = "sha256-uiJy4kfcTFUymyE0DxP6GlMX7ONogLFrx6K9IcgwTSE=";
|
|
};
|
|
|
|
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;
|
|
mainProgram = "gremlin-console";
|
|
};
|
|
}
|