Merge pull request #55047 from flokli/neo4j-3.5.2
neo4j: 3.4.10 -> 3.5.2
This commit is contained in:
commit
a06952dbb1
@ -142,6 +142,7 @@ in
|
||||
nat.firewall = handleTest ./nat.nix { withFirewall = true; };
|
||||
nat.firewall-conntrack = handleTest ./nat.nix { withFirewall = true; withConntrackHelpers = true; };
|
||||
nat.standalone = handleTest ./nat.nix { withFirewall = false; };
|
||||
neo4j = handleTest ./neo4j.nix {};
|
||||
netdata = handleTest ./netdata.nix {};
|
||||
networking.networkd = handleTest ./networking.nix { networkd = true; };
|
||||
networking.scripted = handleTest ./networking.nix { networkd = false; };
|
||||
|
20
nixos/tests/neo4j.nix
Normal file
20
nixos/tests/neo4j.nix
Normal file
@ -0,0 +1,20 @@
|
||||
import ./make-test.nix {
|
||||
name = "neo4j";
|
||||
|
||||
nodes = {
|
||||
master =
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.neo4j.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
startAll;
|
||||
|
||||
$master->waitForUnit("neo4j");
|
||||
$master->sleep(20); # Hopefully this is long enough!!
|
||||
$master->succeed("curl http://localhost:7474/");
|
||||
'';
|
||||
}
|
@ -4,21 +4,22 @@ with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "neo4j-${version}";
|
||||
version = "3.4.10";
|
||||
version = "3.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
|
||||
sha256 = "0wxcwsnnwk08w3zaz67aa93ysrl61lsy41xynq1sy6z31a7gx9jr";
|
||||
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 neo4j-shell cypher-shell
|
||||
for NEO4J_SCRIPT in neo4j neo4j-admin neo4j-import cypher-shell
|
||||
do
|
||||
makeWrapper "$out/share/neo4j/bin/$NEO4J_SCRIPT" \
|
||||
"$out/bin/$NEO4J_SCRIPT" \
|
||||
|
Loading…
Reference in New Issue
Block a user