summary refs log tree commit diff
path: root/pkgs/servers/nosql
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2021-07-13 18:24:13 +0200
committerRobert Hensing <robert@roberthensing.nl>2021-07-14 09:25:16 +0200
commitc43213bb6784af05faa7155e591400f7435797eb (patch)
tree67082e9536f9cd07000ed8d3c0861064a6107798 /pkgs/servers/nosql
parent63c241d6a7fd1dfd9d6951f41a7d6d9e97040608 (diff)
downloadnixpkgs-c43213bb6784af05faa7155e591400f7435797eb.tar
nixpkgs-c43213bb6784af05faa7155e591400f7435797eb.tar.gz
nixpkgs-c43213bb6784af05faa7155e591400f7435797eb.tar.bz2
nixpkgs-c43213bb6784af05faa7155e591400f7435797eb.tar.lz
nixpkgs-c43213bb6784af05faa7155e591400f7435797eb.tar.xz
nixpkgs-c43213bb6784af05faa7155e591400f7435797eb.tar.zst
nixpkgs-c43213bb6784af05faa7155e591400f7435797eb.zip
neo4j: Clean up and make jre easy to override
Convention is to use `jre` and make it specific in the callPackage
call.
This way users can override it regardless of changes to the default
neo4j jre.
Diffstat (limited to 'pkgs/servers/nosql')
-rw-r--r--pkgs/servers/nosql/neo4j/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/servers/nosql/neo4j/default.nix b/pkgs/servers/nosql/neo4j/default.nix
index 0ca16988c87..9147de6d4a1 100644
--- a/pkgs/servers/nosql/neo4j/default.nix
+++ b/pkgs/servers/nosql/neo4j/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, makeWrapper, jre8, which, gawk }:
+{ lib, stdenv, fetchurl, makeWrapper, jre, which, gawk }:
 
 with lib;
 
@@ -12,8 +12,6 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ makeWrapper ];
-  buildInputs = [ jre8 which gawk ];
-
 
   installPhase = ''
     mkdir -p "$out/share/neo4j"
@@ -24,8 +22,8 @@ stdenv.mkDerivation rec {
     do
         makeWrapper "$out/share/neo4j/bin/$NEO4J_SCRIPT" \
             "$out/bin/$NEO4J_SCRIPT" \
-            --prefix PATH : "${lib.makeBinPath [ jre8 which gawk ]}" \
-            --set JAVA_HOME "${jre8}"
+            --prefix PATH : "${lib.makeBinPath [ jre which gawk ]}" \
+            --set JAVA_HOME "${jre}"
     done
   '';