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

39 lines
1.1 KiB
Nix
Raw Normal View History

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}";
version = "3.4.5";
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";
sha256 = "1fzzj227r5xjls6j5mkjam8pnhbyiqv1799n8k812pk4fqvq4lxg";
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"
2017-02-23 15:19:30 +01:00
for NEO4J_SCRIPT in neo4j neo4j-admin neo4j-import neo4j-shell cypher-shell
2016-10-11 23:58:54 +02: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 23:53:03 +02:00
'';
meta = with stdenv.lib; {
description = "A highly scalable, robust (fully ACID) native graph database";
homepage = http://www.neo4j.org/;
2014-08-16 23:53:03 +02:00
license = licenses.gpl3;
maintainers = [ maintainers.offline ];
platforms = stdenv.lib.platforms.unix;
};
}