mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
janusgraph: init at 0.6.2
This commit is contained in:
parent
2c5c239958
commit
5ec24ce090
44
pkgs/servers/nosql/janusgraph/default.nix
Normal file
44
pkgs/servers/nosql/janusgraph/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user