2016-10-11 23:58:54 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
|
2014-08-16 23:53:03 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "neo4j-${version}";
|
2016-10-11 23:58:54 +02:00
|
|
|
version = "3.0.6";
|
2014-08-16 23:53:03 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dist.neo4j.org/neo4j-community-${version}-unix.tar.gz";
|
2016-10-11 23:58:54 +02:00
|
|
|
sha256 = "efeab41183e9e5fa94a2d396c65ea93a24e9f105cb3b5f0d0a8e42fb709f4660";
|
2014-08-16 23:53:03 +02:00
|
|
|
};
|
|
|
|
|
2016-10-11 23:58:54 +02:00
|
|
|
buildInputs = [ makeWrapper jre8 which gawk ];
|
2014-08-16 23:53:03 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/neo4j"
|
|
|
|
cp -R * "$out/share/neo4j"
|
|
|
|
|
|
|
|
mkdir -p "$out/bin"
|
2016-10-11 23:58:54 +02:00
|
|
|
for NEO4J_SCRIPT in neo4j neo4j-admin neo4j-import neo4j-shell
|
|
|
|
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 23:53:03 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A highly scalable, robust (fully ACID) native graph database";
|
2014-08-16 23:53:03 +02:00
|
|
|
homepage = "http://www.neo4j.org/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
|
|
|
|
maintainers = [ maintainers.offline ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|