2016-10-11 21:58:54 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
|
2014-08-16 21:53:03 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "neo4j-${version}";
|
2018-06-19 11:49:11 +00:00
|
|
|
version = "3.4.1";
|
2014-08-16 21:53:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-01 10:17:03 +00:00
|
|
|
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
|
2018-06-19 11:49:11 +00:00
|
|
|
sha256 = "1hgpgkmz0rgdppk1rl41017369qp9lfbrdk7j3qc5dq54x8rxbjp";
|
2014-08-16 21:53:03 +00:00
|
|
|
};
|
|
|
|
|
2016-10-11 21:58:54 +00:00
|
|
|
buildInputs = [ makeWrapper jre8 which gawk ];
|
2014-08-16 21:53:03 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/neo4j"
|
|
|
|
cp -R * "$out/share/neo4j"
|
|
|
|
|
|
|
|
mkdir -p "$out/bin"
|
2017-02-23 14:19:30 +00:00
|
|
|
for NEO4J_SCRIPT in neo4j neo4j-admin neo4j-import neo4j-shell cypher-shell
|
2016-10-11 21:58:54 +00:00
|
|
|
do
|
|
|
|
makeWrapper "$out/share/neo4j/bin/$NEO4J_SCRIPT" \
|
|
|
|
"$out/bin/$NEO4J_SCRIPT" \
|
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ jre8 which gawk ]}" \
|
|
|
|
--set JAVA_HOME "$jre8"
|
|
|
|
done
|
2014-08-16 21:53:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "A highly scalable, robust (fully ACID) native graph database";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://www.neo4j.org/;
|
2014-08-16 21:53:03 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
|
|
|
|
maintainers = [ maintainers.offline ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|