Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
nixosTests,
|
|
makeWrapper,
|
|
openjdk17,
|
|
which,
|
|
gawk,
|
|
bashNonInteractive,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "neo4j";
|
|
version = "5.26.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://neo4j.com/artifact.php?name=neo4j-community-${version}-unix.tar.gz";
|
|
hash = "sha256-RiCUpsUxUaMSz1a4ptNQ8rp99ffj0r4DPggt8RgSj7U=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ bashNonInteractive ];
|
|
strictDeps = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/share/neo4j"
|
|
cp -R * "$out/share/neo4j"
|
|
|
|
mkdir -p "$out/bin"
|
|
for NEO4J_SCRIPT in neo4j neo4j-admin cypher-shell
|
|
do
|
|
chmod +x "$out/share/neo4j/bin/$NEO4J_SCRIPT"
|
|
makeWrapper "$out/share/neo4j/bin/$NEO4J_SCRIPT" \
|
|
"$out/bin/$NEO4J_SCRIPT" \
|
|
--prefix PATH : "${
|
|
lib.makeBinPath [
|
|
openjdk17
|
|
which
|
|
gawk
|
|
]
|
|
}" \
|
|
--set JAVA_HOME "${openjdk17}"
|
|
done
|
|
|
|
patchShebangs $out/share/neo4j/bin/neo4j-admin
|
|
|
|
# user will be asked to change password on first login
|
|
# password must be at least 8 characters long
|
|
$out/bin/neo4j-admin dbms set-initial-password neo4jadmin
|
|
'';
|
|
|
|
passthru.tests.nixos = nixosTests.neo4j;
|
|
|
|
meta = with lib; {
|
|
description = "Highly scalable, robust (fully ACID) native graph database";
|
|
homepage = "https://neo4j.com/";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|