nixpkgs-suyu/pkgs/servers/nosql/neo4j/default.nix
Florian Klink 2436c97cbe neo4j: 3.4.10 -> 3.5.2
neo4j-shell is gone
2019-02-01 13:55:30 +01:00

39 lines
1 KiB
Nix

{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "neo4j-${version}";
version = "3.5.2";
src = fetchurl {
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
sha256 = "0i36vgs6b24bdhckgkhw23g59x1f2zg6h07c73jv55sdmxmcdpn1";
};
buildInputs = [ makeWrapper jre8 which gawk ];
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
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
'';
meta = with stdenv.lib; {
description = "A highly scalable, robust (fully ACID) native graph database";
homepage = http://www.neo4j.org/;
license = licenses.gpl3;
maintainers = [ maintainers.offline ];
platforms = stdenv.lib.platforms.unix;
};
}