From 668bbeb2d2628836ba829d18cf9bfb41d9115bc0 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Wed, 13 Oct 2021 12:24:30 +0200 Subject: [PATCH] nixos/subsonic: use jre8 The latest version of Subsonic (6.1.6) does not suport Java SE 9 or later because it depends on the JAXB APIs. Those are considered to be Java EE APIs are no longer contained on the default classpath in Java SE 9 and are completely removed in Java SE 11.. (cherry picked from commit 14c5fe8c1b61c957ad45d0df801c7928d9e4d134) --- nixos/modules/services/misc/subsonic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/subsonic.nix b/nixos/modules/services/misc/subsonic.nix index 152917d345c..0f59c9a1e94 100644 --- a/nixos/modules/services/misc/subsonic.nix +++ b/nixos/modules/services/misc/subsonic.nix @@ -108,7 +108,7 @@ let cfg = config.services.subsonic; in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; script = '' - ${pkgs.jre}/bin/java -Xmx${toString cfg.maxMemory}m \ + ${pkgs.jre8}/bin/java -Xmx${toString cfg.maxMemory}m \ -Dsubsonic.home=${cfg.home} \ -Dsubsonic.host=${cfg.listenAddress} \ -Dsubsonic.port=${toString cfg.port} \