about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-10-28 21:33:16 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2019-10-28 21:34:55 +0100
commitdf7727042f0252b5dd2f6a136175a320caa161f8 (patch)
treef036dc63d6f0fa146ba6d49944a5506835a1aee1
parentf86361d186354167ff09f8aa163e70f7c5685503 (diff)
downloadnixlib-df7727042f0252b5dd2f6a136175a320caa161f8.tar
nixlib-df7727042f0252b5dd2f6a136175a320caa161f8.tar.gz
nixlib-df7727042f0252b5dd2f6a136175a320caa161f8.tar.bz2
nixlib-df7727042f0252b5dd2f6a136175a320caa161f8.tar.lz
nixlib-df7727042f0252b5dd2f6a136175a320caa161f8.tar.xz
nixlib-df7727042f0252b5dd2f6a136175a320caa161f8.tar.zst
nixlib-df7727042f0252b5dd2f6a136175a320caa161f8.zip
nexus: 3.18.1-01 -> 3.19.1-01
Relevant release notes:

* https://help.sonatype.com/repomanager3/release-notes/2019-release-notes#id-2019ReleaseNotes-RepositoryManager3.19.1
* https://help.sonatype.com/repomanager3/release-notes/2019-release-notes#id-2019ReleaseNotes-RepositoryManager3.19.0

Also added `preferLocalBuild = true;` to prevent builds on remote
machines as this only means elevated network access (tarball is fetched
locally and uploaded to the builder) and the build is fairly trivial.

To fix the startup I had to add the JVM parameter `java.endorsed.dirs`
to ensure that all libraries are loaded properly[1].

[1] https://issues.sonatype.org/browse/NEXUS-21603
-rw-r--r--nixos/modules/services/web-apps/nexus.nix1
-rw-r--r--pkgs/development/tools/repository-managers/nexus/default.nix6
2 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/nexus.nix b/nixos/modules/services/web-apps/nexus.nix
index 3af97e146d0a..d4d507362c97 100644
--- a/nixos/modules/services/web-apps/nexus.nix
+++ b/nixos/modules/services/web-apps/nexus.nix
@@ -68,6 +68,7 @@ in
           -Dkaraf.data=${cfg.home}/nexus3
           -Djava.io.tmpdir=${cfg.home}/nexus3/tmp
           -Dkaraf.startLocalConsole=false
+          -Djava.endorsed.dirs=${cfg.package}/lib/endorsed
         '';
 
         description = ''
diff --git a/pkgs/development/tools/repository-managers/nexus/default.nix b/pkgs/development/tools/repository-managers/nexus/default.nix
index acf9d03843d0..95a9e78383f3 100644
--- a/pkgs/development/tools/repository-managers/nexus/default.nix
+++ b/pkgs/development/tools/repository-managers/nexus/default.nix
@@ -2,13 +2,15 @@
 
 stdenv.mkDerivation rec {
   pname = "nexus";
-  version = "3.18.1-01";
+  version = "3.19.1-01";
 
   src = fetchurl {
     url = "https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${version}-unix.tar.gz";
-    sha256 = "0z3hb1ha0yvi09hrndrzzh95g3m42pfsi0gzw7hfx9r0n8r2qgkd";
+    sha256 = "0kjzp5n6pkgx5s21jfmh6pbgnjlvs89kcjqikv4lgc5yia264bks";
   };
 
+  preferLocalBuild = true;
+
   sourceRoot = "${pname}-${version}";
 
   nativeBuildInputs = [ makeWrapper ];