nixpkgs/pkgs/servers/nosql/neo4j/default.nix
Ryan Mulligan 1be5268326 neo4j: 3.1.2 -> 3.3.2
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j help` got 0 exit code
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j --version` and found version 3.3.2
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j version` and found version 3.3.2
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j help` and found version 3.3.2
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-admin help` got 0 exit code
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-admin --version` and found version 3.3.2
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-import --help` got 0 exit code
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-import help` got 0 exit code
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-shell -h` got 0 exit code
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-shell --help` got 0 exit code
- ran `/nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2/bin/neo4j-shell --version` and found version 3.3.2
- found 3.3.2 with grep in /nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2
- found 3.3.2 in filename of file in /nix/store/h7gmk2gjradg84isbn8hpb05cirpkind-neo4j-3.3.2

cc "@offline"
2018-02-27 08:00:02 -08:00

39 lines
1.0 KiB
Nix

{ stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "neo4j-${version}";
version = "3.3.2";
src = fetchurl {
url = "http://dist.neo4j.org/neo4j-community-${version}-unix.tar.gz";
sha256 = "0vjzc38sacnbcw781qzng9lqwwahndfc3wia5yvxji094zqp8ala";
};
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;
};
}