Skip to content

Commit

Permalink
Bump to latest JDK in Nix, also fix unicode output issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Aug 17, 2024
1 parent 3b9ad72 commit e6af4bb
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down Expand Up @@ -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
'';

Expand Down
2 changes: 1 addition & 1 deletion nix/boringsslshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stdenv.mkDerivation {
buildInputs = [
boringssl
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
5 changes: 2 additions & 3 deletions nix/botanshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
stdenv,
botan2,
pkg-config,
# NOTE change to jdk17?
jdk11_headless,
jdk,
}:
stdenv.mkDerivation {
name = "BotanShim";
Expand All @@ -12,7 +11,7 @@ stdenv.mkDerivation {
buildInputs = [
botan2
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion nix/cryptoppshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation {
buildInputs = [
cryptopp
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion nix/ippcpshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
Expand Down
2 changes: 1 addition & 1 deletion nix/libresslshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libressl
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion nix/mbedtlsshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
buildInputs = [
mbedtls
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion nix/nettleshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nettle
gmp
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion nix/opensslshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stdenv.mkDerivation {
buildInputs = [
openssl
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down
2 changes: 1 addition & 1 deletion nix/tomcryptshim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdenv.mkDerivation {
libtommath
libtomcrypt
pkg-config
jdk11_headless
jdk
];

buildPhase = ''
Expand Down

0 comments on commit e6af4bb

Please sign in to comment.