nixpkgs/pkgs/servers/nosql/neo4j/default.nix
R. RyanTM 867c4a438b neo4j: 3.4.0 -> 3.4.1
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.

These checks were done:

- built on NixOS
- /nix/store/cmnl1i2dr77i6rs6kvk2y5pml713zpp6-neo4j-3.4.1/bin/neo4j passed the binary check.
- /nix/store/cmnl1i2dr77i6rs6kvk2y5pml713zpp6-neo4j-3.4.1/bin/neo4j-admin passed the binary check.
- /nix/store/cmnl1i2dr77i6rs6kvk2y5pml713zpp6-neo4j-3.4.1/bin/neo4j-import passed the binary check.
- /nix/store/cmnl1i2dr77i6rs6kvk2y5pml713zpp6-neo4j-3.4.1/bin/neo4j-shell passed the binary check.
- /nix/store/cmnl1i2dr77i6rs6kvk2y5pml713zpp6-neo4j-3.4.1/bin/cypher-shell passed the binary check.
- 5 of 5 passed binary check by having a zero exit code.
- 2 of 5 passed binary check by having the new version present in output.
- found 3.4.1 with grep in /nix/store/cmnl1i2dr77i6rs6kvk2y5pml713zpp6-neo4j-3.4.1
- directory tree listing: https://gist.github.com/89bcc22704e3395637aebe7490b1c372
- du listing: https://gist.github.com/28e23479c8d4173c73887b835e0d2ada
2018-06-19 16:19:03 +00:00

39 lines
1.1 KiB
Nix

{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "neo4j-${version}";
version = "3.4.1";
src = fetchurl {
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
sha256 = "1hgpgkmz0rgdppk1rl41017369qp9lfbrdk7j3qc5dq54x8rxbjp";
};
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 neo4j-shell 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;
};
}