Skip to content

Commit e6af4bb

Browse files
committed
Bump to latest JDK in Nix, also fix unicode output issue.
1 parent 3b9ad72 commit e6af4bb

10 files changed

+13
-13
lines changed

flake.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@
634634
pname = "ECTesterStandalone";
635635
version = "0.3.3";
636636
lockFile = ./gradle.lock;
637+
buildJdk = pkgs.jdk;
637638

638639
# NOTE: the shims are built separately, therefore no need to call build `libs` target
639640
gradleBuildFlags = [ ":standalone:uberJar" ];
@@ -676,8 +677,8 @@
676677

677678
postFixup = ''
678679
makeWrapper \
679-
${jdk17_headless}/bin/java $out/bin/${pname} \
680-
--add-flags "-jar $out/build/libs/${pname}.jar" \
680+
${jdk}/bin/java $out/bin/${pname} \
681+
--add-flags "-Dstdout.encoding=UTF8 -Dstderr.encoding=UTF8 -jar $out/build/libs/${pname}.jar" \
681682
--set LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$LD_LIBRARY_PATH
682683
'';
683684

nix/boringsslshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
77
buildInputs = [
88
boringssl
99
pkg-config
10-
jdk11_headless
10+
jdk
1111
];
1212

1313
buildPhase = ''

nix/botanshim.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
stdenv,
33
botan2,
44
pkg-config,
5-
# NOTE change to jdk17?
6-
jdk11_headless,
5+
jdk,
76
}:
87
stdenv.mkDerivation {
98
name = "BotanShim";
@@ -12,7 +11,7 @@ stdenv.mkDerivation {
1211
buildInputs = [
1312
botan2
1413
pkg-config
15-
jdk11_headless
14+
jdk
1615
];
1716

1817
buildPhase = ''

nix/cryptoppshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
1010
buildInputs = [
1111
cryptopp
1212
pkg-config
13-
jdk11_headless
13+
jdk
1414
];
1515

1616
buildPhase = ''

nix/ippcpshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
77
buildInputs = [
88
ipp-crypto
99
pkg-config
10-
jdk11_headless
10+
jdk
1111
];
1212

1313
IPP_CRYPTO_CFLAGS = "-I${ipp-crypto.dev}/include -DECTESTER_IPPCP_VERSION=${ipp-crypto.version}";

nix/libresslshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
77
buildInputs = [
88
libressl
99
pkg-config
10-
jdk11_headless
10+
jdk
1111
];
1212

1313
buildPhase = ''

nix/mbedtlsshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88
buildInputs = [
99
mbedtls
1010
pkg-config
11-
jdk11_headless
11+
jdk
1212
];
1313

1414
buildPhase = ''

nix/nettleshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212
nettle
1313
gmp
1414
pkg-config
15-
jdk11_headless
15+
jdk
1616
];
1717

1818
buildPhase = ''

nix/opensslshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
77
buildInputs = [
88
openssl
99
pkg-config
10-
jdk11_headless
10+
jdk
1111
];
1212

1313
buildPhase = ''

nix/tomcryptshim.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
1212
libtommath
1313
libtomcrypt
1414
pkg-config
15-
jdk11_headless
15+
jdk
1616
];
1717

1818
buildPhase = ''

0 commit comments

Comments
 (0)