From 95431151dbbdd6d9fd057f670740736208ae33af Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Thu, 17 Feb 2022 06:18:59 -0500 Subject: [PATCH 1/2] gremlin-server: init at 3.5.2 --- .../misc/gremlin-server/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/applications/misc/gremlin-server/default.nix diff --git a/pkgs/applications/misc/gremlin-server/default.nix b/pkgs/applications/misc/gremlin-server/default.nix new file mode 100644 index 000000000000..267789e6ff6d --- /dev/null +++ b/pkgs/applications/misc/gremlin-server/default.nix @@ -0,0 +1,33 @@ +{ fetchzip, lib, stdenv, makeWrapper, openjdk }: +stdenv.mkDerivation rec { + pname = "gremlin-server"; + version = "3.5.2"; + src = fetchzip { + url = "https://downloads.apache.org/tinkerpop/${version}/apache-tinkerpop-gremlin-server-${version}-bin.zip"; + sha256 = "sha256-XFI2PQnvIPYjkJhm73TPSpMqH4+/Qv5RxS5iWkfuBg0="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + # Note you'll want to prefix any commands with LOG_DIR, PID_DIR, and RUN_DIR + # environment variables set to a writable director(y/ies). + + installPhase = '' + runHook preInstall + mkdir -p $out/opt + cp -r conf ext lib scripts $out/opt/ + install -D bin/gremlin-server.sh $out/opt/bin/gremlin-server + makeWrapper $out/opt/bin/gremlin-server $out/bin/gremlin-server \ + --prefix PATH ":" "${openjdk}/bin/" \ + --set CLASSPATH "$out/opt/lib/" + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://tinkerpop.apache.org/"; + description = "Server of the Apache TinkerPop graph computing framework"; + license = licenses.asl20; + maintainers = [ maintainers.lewo ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 314e0bde464e..0f736507a531 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1874,6 +1874,10 @@ with pkgs; openjdk = openjdk11; }; + gremlin-server = callPackage ../applications/misc/gremlin-server { + openjdk = openjdk11; + }; + grex = callPackage ../tools/misc/grex { inherit (darwin.apple_sdk.frameworks) Security; }; From 531ff216711a62f48db7413f69282c01eec30313 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Sat, 19 Feb 2022 05:56:37 -0500 Subject: [PATCH 2/2] Add self as maintainer. --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/applications/misc/gremlin-server/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1e9a4fbed442..2bbaf33bc68a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6024,6 +6024,12 @@ githubId = 4611077; name = "Raymond Gauthier"; }; + jrpotter = { + email = "jrpotter2112@gmail.com"; + github = "jrpotter"; + githubId = 3267697; + name = "Joshua Potter"; + }; jschievink = { email = "jonasschievink@gmail.com"; matrix = "@jschievink:matrix.org"; diff --git a/pkgs/applications/misc/gremlin-server/default.nix b/pkgs/applications/misc/gremlin-server/default.nix index 267789e6ff6d..70068ec21f88 100644 --- a/pkgs/applications/misc/gremlin-server/default.nix +++ b/pkgs/applications/misc/gremlin-server/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { homepage = "https://tinkerpop.apache.org/"; description = "Server of the Apache TinkerPop graph computing framework"; license = licenses.asl20; - maintainers = [ maintainers.lewo ]; + maintainers = [ maintainers.jrpotter ]; platforms = platforms.all; }; }