nixpkgs/pkgs/servers/nosql/neo4j/default.nix

40 lines
1.0 KiB
Nix
Raw Normal View History

2016-10-11 22:58:54 +01:00
{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
2014-08-16 22:53:03 +01:00
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "neo4j";
2019-12-24 00:50:52 +00:00
version = "3.5.14";
2014-08-16 22:53:03 +01:00
src = fetchurl {
2018-06-01 11:17:03 +01:00
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
2019-12-24 00:50:52 +00:00
sha256 = "1zjb6cgk2lpzx6pq1cs5fh65in6b5ccpl1cgfiglgpjc948mnhzv";
2014-08-16 22:53:03 +01:00
};
2016-10-11 22:58:54 +01:00
buildInputs = [ makeWrapper jre8 which gawk ];
2014-08-16 22:53:03 +01:00
2014-08-16 22:53:03 +01:00
installPhase = ''
mkdir -p "$out/share/neo4j"
cp -R * "$out/share/neo4j"
mkdir -p "$out/bin"
for NEO4J_SCRIPT in neo4j neo4j-admin neo4j-import cypher-shell
2016-10-11 22:58:54 +01: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 22:53:03 +01:00
'';
meta = with stdenv.lib; {
description = "A highly scalable, robust (fully ACID) native graph database";
homepage = http://www.neo4j.org/;
2014-08-16 22:53:03 +01:00
license = licenses.gpl3;
maintainers = [ maintainers.offline ];
platforms = stdenv.lib.platforms.unix;
};
}