2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
|
2014-08-16 23:53:03 +02:00
|
|
|
|
2021-01-15 08:07:56 +01:00
|
|
|
with lib;
|
2014-08-16 23:53:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "neo4j";
|
2019-12-24 01:50:52 +01:00
|
|
|
version = "3.5.14";
|
2014-08-16 23:53:03 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-01 12:17:03 +02:00
|
|
|
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
|
2019-12-24 01:50:52 +01:00
|
|
|
sha256 = "1zjb6cgk2lpzx6pq1cs5fh65in6b5ccpl1cgfiglgpjc948mnhzv";
|
2014-08-16 23:53:03 +02:00
|
|
|
};
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ jre8 which gawk ];
|
2014-08-16 23:53:03 +02:00
|
|
|
|
2019-02-01 13:55:07 +01:00
|
|
|
|
2014-08-16 23:53:03 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/neo4j"
|
|
|
|
cp -R * "$out/share/neo4j"
|
|
|
|
|
|
|
|
mkdir -p "$out/bin"
|
2019-02-01 13:55:07 +01:00
|
|
|
for NEO4J_SCRIPT in neo4j neo4j-admin neo4j-import cypher-shell
|
2016-10-11 23:58:54 +02:00
|
|
|
do
|
|
|
|
makeWrapper "$out/share/neo4j/bin/$NEO4J_SCRIPT" \
|
|
|
|
"$out/bin/$NEO4J_SCRIPT" \
|
2021-01-15 08:07:56 +01:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ jre8 which gawk ]}" \
|
2021-07-13 18:16:35 +02:00
|
|
|
--set JAVA_HOME "${jre8}"
|
2016-10-11 23:58:54 +02:00
|
|
|
done
|
2014-08-16 23:53:03 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A highly scalable, robust (fully ACID) native graph database";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.neo4j.org/";
|
2014-08-16 23:53:03 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
|
|
|
|
maintainers = [ maintainers.offline ];
|
2021-01-15 08:07:56 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2014-08-16 23:53:03 +02:00
|
|
|
};
|
|
|
|
}
|