aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2024-08-17 19:25:34 +0200
committerJ08nY2024-08-17 19:25:34 +0200
commite6af4bb1c1f26bb33ada234725118625760759ae (patch)
tree92aab38ed7d9ea1d49c877b067958f9e2b8c62b0
parent3b9ad72877de3c60c83a2f6c4bcd80bcdb7193d8 (diff)
downloadECTester-e6af4bb1c1f26bb33ada234725118625760759ae.tar.gz
ECTester-e6af4bb1c1f26bb33ada234725118625760759ae.tar.zst
ECTester-e6af4bb1c1f26bb33ada234725118625760759ae.zip
-rw-r--r--flake.nix5
-rw-r--r--nix/boringsslshim.nix2
-rw-r--r--nix/botanshim.nix5
-rw-r--r--nix/cryptoppshim.nix2
-rw-r--r--nix/ippcpshim.nix2
-rw-r--r--nix/libresslshim.nix2
-rw-r--r--nix/mbedtlsshim.nix2
-rw-r--r--nix/nettleshim.nix2
-rw-r--r--nix/opensslshim.nix2
-rw-r--r--nix/tomcryptshim.nix2
10 files changed, 13 insertions, 13 deletions
diff --git a/flake.nix b/flake.nix
index a675910..33ac4f5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -634,6 +634,7 @@
pname = "ECTesterStandalone";
version = "0.3.3";
lockFile = ./gradle.lock;
+ buildJdk = pkgs.jdk;
# NOTE: the shims are built separately, therefore no need to call build `libs` target
gradleBuildFlags = [ ":standalone:uberJar" ];
@@ -676,8 +677,8 @@
postFixup = ''
makeWrapper \
- ${jdk17_headless}/bin/java $out/bin/${pname} \
- --add-flags "-jar $out/build/libs/${pname}.jar" \
+ ${jdk}/bin/java $out/bin/${pname} \
+ --add-flags "-Dstdout.encoding=UTF8 -Dstderr.encoding=UTF8 -jar $out/build/libs/${pname}.jar" \
--set LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$LD_LIBRARY_PATH
'';
diff --git a/nix/boringsslshim.nix b/nix/boringsslshim.nix
index a32a5bc..4fb8a02 100644
--- a/nix/boringsslshim.nix
+++ b/nix/boringsslshim.nix
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
buildInputs = [
boringssl
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/botanshim.nix b/nix/botanshim.nix
index ce16b1b..eb74a6b 100644
--- a/nix/botanshim.nix
+++ b/nix/botanshim.nix
@@ -2,8 +2,7 @@
stdenv,
botan2,
pkg-config,
- # NOTE change to jdk17?
- jdk11_headless,
+ jdk,
}:
stdenv.mkDerivation {
name = "BotanShim";
@@ -12,7 +11,7 @@ stdenv.mkDerivation {
buildInputs = [
botan2
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/cryptoppshim.nix b/nix/cryptoppshim.nix
index 2989066..c225e8c 100644
--- a/nix/cryptoppshim.nix
+++ b/nix/cryptoppshim.nix
@@ -10,7 +10,7 @@ stdenv.mkDerivation {
buildInputs = [
cryptopp
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/ippcpshim.nix b/nix/ippcpshim.nix
index a059d5b..465c3c2 100644
--- a/nix/ippcpshim.nix
+++ b/nix/ippcpshim.nix
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
buildInputs = [
ipp-crypto
pkg-config
- jdk11_headless
+ jdk
];
IPP_CRYPTO_CFLAGS = "-I${ipp-crypto.dev}/include -DECTESTER_IPPCP_VERSION=${ipp-crypto.version}";
diff --git a/nix/libresslshim.nix b/nix/libresslshim.nix
index 862701f..100e941 100644
--- a/nix/libresslshim.nix
+++ b/nix/libresslshim.nix
@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libressl
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/mbedtlsshim.nix b/nix/mbedtlsshim.nix
index 05cad9c..0b31907 100644
--- a/nix/mbedtlsshim.nix
+++ b/nix/mbedtlsshim.nix
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
buildInputs = [
mbedtls
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/nettleshim.nix b/nix/nettleshim.nix
index 7488398..42da7ff 100644
--- a/nix/nettleshim.nix
+++ b/nix/nettleshim.nix
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nettle
gmp
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/opensslshim.nix b/nix/opensslshim.nix
index be0263b..7c585fc 100644
--- a/nix/opensslshim.nix
+++ b/nix/opensslshim.nix
@@ -7,7 +7,7 @@ stdenv.mkDerivation {
buildInputs = [
openssl
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''
diff --git a/nix/tomcryptshim.nix b/nix/tomcryptshim.nix
index bcdc984..d4f1f2f 100644
--- a/nix/tomcryptshim.nix
+++ b/nix/tomcryptshim.nix
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
libtommath
libtomcrypt
pkg-config
- jdk11_headless
+ jdk
];
buildPhase = ''