nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 33 lines 1.1 kB view raw
1{ fetchzip, lib, stdenv, makeWrapper, openjdk }: 2stdenv.mkDerivation rec { 3 pname = "gremlin-server"; 4 version = "3.5.2"; 5 src = fetchzip { 6 url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-server-${version}-bin.zip"; 7 sha256 = "sha256-XFI2PQnvIPYjkJhm73TPSpMqH4+/Qv5RxS5iWkfuBg0="; 8 }; 9 10 nativeBuildInputs = [ makeWrapper ]; 11 12 # Note you'll want to prefix any commands with LOG_DIR, PID_DIR, and RUN_DIR 13 # environment variables set to a writable director(y/ies). 14 15 installPhase = '' 16 runHook preInstall 17 mkdir -p $out/opt 18 cp -r conf ext lib scripts $out/opt/ 19 install -D bin/gremlin-server.sh $out/opt/bin/gremlin-server 20 makeWrapper $out/opt/bin/gremlin-server $out/bin/gremlin-server \ 21 --prefix PATH ":" "${openjdk}/bin/" \ 22 --set CLASSPATH "$out/opt/lib/" 23 runHook postInstall 24 ''; 25 26 meta = with lib; { 27 homepage = "https://tinkerpop.apache.org/"; 28 description = "Server of the Apache TinkerPop graph computing framework"; 29 license = licenses.asl20; 30 maintainers = [ maintainers.jrpotter ]; 31 platforms = platforms.all; 32 }; 33}