From 9766d6127ab52253174ff5989d6054745ba1b7bf Mon Sep 17 00:00:00 2001 From: ners Date: Fri, 7 Oct 2022 13:57:44 +0200 Subject: [PATCH 1/3] maintainers: add ners --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0ddf2fa033de..5ef23561699e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9555,6 +9555,13 @@ githubId = 23743547; name = "Akshay Oppiliappan"; }; + ners = { + name = "ners"; + email = "ners@gmx.ch"; + matrix = "@ners:ners.ch"; + github = "ners"; + githubId = 50560955; + }; nessdoor = { name = "Tomas Antonio Lopez"; email = "entropy.overseer@protonmail.com"; From 2c5c239958bc9f9e7fda9f37c3515586f793f7b9 Mon Sep 17 00:00:00 2001 From: ners Date: Sat, 8 Oct 2022 14:15:05 +0200 Subject: [PATCH 2/3] apache-directory-server: init at 2.0.0.AM26 --- .../apache-directory-server/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/servers/apache-directory-server/default.nix diff --git a/pkgs/servers/apache-directory-server/default.nix b/pkgs/servers/apache-directory-server/default.nix new file mode 100644 index 000000000000..7008e0e40d25 --- /dev/null +++ b/pkgs/servers/apache-directory-server/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchzip, jdk11, makeWrapper }: + +stdenv.mkDerivation rec { + pname = "apache-directory-server"; + version = "2.0.0.AM26"; + + src = fetchzip { + url = "https://dlcdn.apache.org//directory/apacheds/dist/${version}/apacheds-${version}.zip"; + sha256 = "sha256-36kDvfSy5rt/3+nivEFTepnIKf6sX0NTgPRm28M+1v4="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin $out/share/apacheds + install -D $src/lib/*.jar $out/share/apacheds + classpath=$(jars=($out/share/apacheds/*.jar); IFS=:; echo "''${jars[*]}") + makeWrapper ${jdk11}/bin/java $out/bin/apache-directory-server \ + --add-flags "-classpath $classpath org.apache.directory.server.UberjarMain" + ''; + + meta = with lib; { + description = "An extensible and embeddable directory server"; + homepage = "https://directory.apache.org/apacheds/"; + license = licenses.asl20; + platforms = platforms.unix; + maintainers = [ maintainers.ners ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 31e774dcad04..2464fe98b7c9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26821,6 +26821,8 @@ with pkgs; ao = libfive; + apache-directory-server = callPackage ../servers/apache-directory-server {}; + apache-directory-studio = callPackage ../applications/networking/apache-directory-studio {}; apkeep = callPackage ../tools/misc/apkeep { From 5ec24ce090a82ee341cbdca458aec72f0f0f4a5a Mon Sep 17 00:00:00 2001 From: ners Date: Sat, 8 Oct 2022 14:15:22 +0200 Subject: [PATCH 3/3] janusgraph: init at 0.6.2 --- pkgs/servers/nosql/janusgraph/default.nix | 44 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 46 insertions(+) create mode 100644 pkgs/servers/nosql/janusgraph/default.nix diff --git a/pkgs/servers/nosql/janusgraph/default.nix b/pkgs/servers/nosql/janusgraph/default.nix new file mode 100644 index 000000000000..3fc63a91cd36 --- /dev/null +++ b/pkgs/servers/nosql/janusgraph/default.nix @@ -0,0 +1,44 @@ +{ lib, stdenv, fetchzip, jdk11, makeWrapper }: + +stdenv.mkDerivation rec { + pname = "janusgraph"; + version = "0.6.2"; + + src = fetchzip { + url = "https://github.com/JanusGraph/janusgraph/releases/download/v${version}/janusgraph-${version}.zip"; + sha256 = "sha256-8TMYk8gGyL71zcFk0Lgo7Isvm4k3eh/H6PjfVePpkI4="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin $out/share/janusgraph + install -D $src/lib/*.jar $out/share/janusgraph + cd $src + find conf scripts -type f -exec install -D {} $out/share/janusgraph/{} \; + + JANUSGRAPH_LIB=$out/share/janusgraph + classpath="" + # Add the slf4j-log4j12 binding + classpath="$classpath":$(find -L $JANUSGRAPH_LIB -name 'slf4j-log4j12*.jar' | sort | tr '\n' ':') + # Add the jars in $JANUSGRAPH_LIB that start with "janusgraph" + classpath="$classpath":$(find -L $JANUSGRAPH_LIB -name 'janusgraph*.jar' | sort | tr '\n' ':') + # Add the remaining jars in $JANUSGRAPH_LIB. + classpath="$classpath":$(find -L $JANUSGRAPH_LIB -name '*.jar' \ + \! -name 'janusgraph*' \ + \! -name 'slf4j-log4j12*.jar' | sort | tr '\n' ':') + + makeWrapper ${jdk11}/bin/java $out/bin/janusgraph-server \ + --add-flags "-classpath $classpath org.janusgraph.graphdb.server.JanusGraphServer" + ''; + + meta = with lib; { + description = "An open-source, distributed graph database"; + homepage = "https://janusgraph.org/"; + mainProgram = "janusgraph-server"; + license = licenses.asl20; + platforms = platforms.unix; + maintainers = [ maintainers.ners ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2464fe98b7c9..3c10bb56aecc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23297,6 +23297,8 @@ with pkgs; janus-gateway = callPackage ../servers/janus-gateway { }; + janusgraph = callPackage ../servers/nosql/janusgraph { }; + jboss = callPackage ../servers/http/jboss { }; jboss_mysql_jdbc = callPackage ../servers/http/jboss/jdbc/mysql { };