diff options
| author | quapka | 2024-08-18 17:42:00 +0200 |
|---|---|---|
| committer | quapka | 2024-08-18 17:45:10 +0200 |
| commit | 3ea507cb4e1969023ff4cdff2db8c47a23bf84dd (patch) | |
| tree | d97d28179a7401b6e034f3ea07e95a2354eb4afb /flake.nix | |
| parent | 09a5f58f3bd9152577cc782a806f9126dd715e45 (diff) | |
| download | ECTester-3ea507cb4e1969023ff4cdff2db8c47a23bf84dd.tar.gz ECTester-3ea507cb4e1969023ff4cdff2db8c47a23bf84dd.tar.zst ECTester-3ea507cb4e1969023ff4cdff2db8c47a23bf84dd.zip | |
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -642,7 +642,7 @@ pname = "ECTesterStandalone"; version = "0.3.3"; lockFile = ./gradle.lock; - buildJdk = pkgs.jdk; + buildJdk = pkgs.jdk21_headless; # NOTE: the shims are built separately, therefore no need to call build `libs` target gradleBuildFlags = [ ":standalone:uberJar" ]; @@ -650,10 +650,6 @@ jniLibsPath = "standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/"; - # shims = [ "tomcrypt" "botan" "cryptopp" "openssl" "boringssl" "gcrypt" "mbedtls" "ippcp" "nettle" "libressl" ]; - # copyLib = libName: - # ( if ${libName}.version != null then "cp ${libName}Shim.out/lib/libressl_provider.so ${jniLibsPath}" else "" ) - # FIXME add conditionally libs using map? preConfigure = pkgs.lib.concatLines [ (if tomcrypt.version != null then "cp ${tomcryptShim.out}/lib/* ${jniLibsPath}" else "") @@ -685,7 +681,7 @@ postFixup = '' makeWrapper \ - ${jdk}/bin/java $out/bin/${pname} \ + ${jdk21_headless}/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 ''; |
