diff options
| author | Jan Kvapil | 2024-08-11 18:01:18 +0200 |
|---|---|---|
| committer | Jan Kvapil | 2024-08-11 18:01:18 +0200 |
| commit | 4b396817faa5ee2d284245afc3836e8b5d794e2e (patch) | |
| tree | 35e4c42b76ddf4e24c546dab4c0cade1bb3f1415 | |
| parent | 646607bb3cd1a2c80748ff081493defdff125b4d (diff) | |
| download | ECTester-4b396817faa5ee2d284245afc3836e8b5d794e2e.tar.gz ECTester-4b396817faa5ee2d284245afc3836e8b5d794e2e.tar.zst ECTester-4b396817faa5ee2d284245afc3836e8b5d794e2e.zip | |
| -rw-r--r-- | flake.nix | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -502,20 +502,27 @@ jniLibsPath = "standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/"; - preConfigure = '' - cp ${tomcryptShim.out}/lib/tomcrypt_provider.so ${jniLibsPath} - cp ${botanShim.out}/lib/botan_provider.so ${jniLibsPath} - cp ${cryptoppShim.out}/lib/cryptopp_provider.so ${jniLibsPath} - cp ${opensslShim.out}/lib/openssl_provider.so ${jniLibsPath} - cp ${boringsslShim.out}/lib/boringssl_provider.so ${jniLibsPath} - cp ${gcryptShim.out}/lib/gcrypt_provider.so ${jniLibsPath} - cp ${mbedtlsShim.out}/lib/mbedtls_provider.so ${jniLibsPath} - cp ${ippcpShim.out}/lib/ippcp_provider.so ${jniLibsPath} - cp ${nettleShim.out}/lib/nettle_provider.so ${jniLibsPath} - cp ${libresslShim.out}/lib/libressl_provider.so ${jniLibsPath} + # 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 "" ) + ( if botan.version != null then "cp ${botanShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if cryptopp.version != null then "cp ${cryptoppShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if openssl.version != null then "cp ${opensslShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if boringssl.rev != null then "cp ${boringsslShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if gcrypt.version != null then "cp ${gcryptShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if mbedtls.version != null then "cp ${mbedtlsShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if ippcp.version != null then "cp ${ippcpShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if nettle.version != null then "cp ${nettleShim.out}/lib/* ${jniLibsPath}" else "" ) + ( if libressl.version != null then "cp ${libresslShim.out}/lib/* ${jniLibsPath}" else "" ) + '' cp ${wolfcryptjni}/lib/* ${jniLibsPath} cp ${commonLibs}/lib/* ${jniLibsPath} - ''; + '' + ]; nativeBuildInputs = [ makeWrapper ]; |
