mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
f834efbdca
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/neo4j/versions
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "neo4j-${version}";
|
|
version = "3.5.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
|
|
sha256 = "0kj92vljxdhk9pf6gr9cvd2a2ilc4myp5djjkrj3gm37f074swgg";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|