3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/gremlin-console/default.nix

32 lines
967 B
Nix
Raw Normal View History

{ fetchzip, lib, stdenv, makeWrapper, openjdk }:
2018-09-29 08:21:09 +01:00
stdenv.mkDerivation rec {
pname = "gremlin-console";
2021-12-21 23:42:02 +00:00
version = "3.5.1";
2018-09-29 08:21:09 +01:00
src = fetchzip {
2021-05-12 21:24:09 +01:00
url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-console-${version}-bin.zip";
2021-12-21 23:42:02 +00:00
sha256 = "sha256-66krBK5mSMT0scCgMmiaigT/9nmYfItxe1OTzSbX+kE=";
2018-09-29 08:21:09 +01:00
};
nativeBuildInputs = [ makeWrapper ];
2018-09-29 08:21:09 +01:00
installPhase = ''
runHook preInstall
2018-09-29 08:21:09 +01: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 08:21:09 +01:00
'';
meta = with lib; {
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;
};
}