nixpkgs/pkgs/applications/misc/gremlin-console/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1004 B
Nix
Raw Normal View History

{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
2018-09-29 10:21:09 +03:00
stdenv.mkDerivation rec {
pname = "gremlin-console";
2024-04-29 09:16:53 +03:00
version = "3.7.2";
2018-09-29 10:21:09 +03:00
src = fetchzip {
2021-05-12 23:24:09 +03:00
url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
2024-04-29 09:16:53 +03:00
sha256 = "sha256-lIrqMvI/sYGu36X3jNptoIz7mPVomk8YCIR/6y8mpEc=";
2018-09-29 10:21:09 +03:00
};
nativeBuildInputs = [ makeWrapper ];
2018-09-29 10:21:09 +03:00
installPhase = ''
runHook preInstall
2018-09-29 10:21:09 +03: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/"
runHook postInstall
2018-09-29 10:21:09 +03:00
'';
meta = with lib; {
homepage = "https://tinkerpop.apache.org/";
2018-09-29 10:21:09 +03:00
description = "Console of the Apache TinkerPop graph computing framework";
license = licenses.asl20;
maintainers = [ maintainers.lewo ];
platforms = platforms.all;
2024-02-11 05:19:15 +03:00
mainProgram = "gremlin-console";
2018-09-29 10:21:09 +03:00
};
}