diff options
author | Robert Hensing <robert@roberthensing.nl> | 2021-07-13 18:24:13 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2021-07-14 09:25:16 +0200 |
commit | c43213bb6784af05faa7155e591400f7435797eb (patch) | |
tree | 67082e9536f9cd07000ed8d3c0861064a6107798 | |
parent | 63c241d6a7fd1dfd9d6951f41a7d6d9e97040608 (diff) | |
download | nixpkgs-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.
-rw-r--r-- | pkgs/servers/nosql/neo4j/default.nix | 8 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 6 insertions, 6 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 ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 280283e0761..5bde6bda1b8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19911,7 +19911,9 @@ in check_systemd = callPackage ../servers/monitoring/nagios/plugins/check_systemd.nix { }; - neo4j = callPackage ../servers/nosql/neo4j { }; + neo4j = callPackage ../servers/nosql/neo4j { + jre = jre8; + }; neo4j-desktop = callPackage ../applications/misc/neo4j-desktop { }; |