diff options
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | nix/cryptoppshim.nix | 23 |
2 files changed, 25 insertions, 0 deletions
@@ -120,6 +120,7 @@ # Current list of targets: tomcrypt botan cryptopp openssl boringssl gcrypt mbedtls ippcp nettle libressl tomcryptShim = import ./nix/tomcryptshim.nix { inherit pkgs libtomcrypt libtommath; }; botanShim = import ./nix/botanshim.nix { inherit pkgs; }; + cryptoppShim = import ./nix/cryptoppshim.nix { inherit pkgs cryptopp; }; mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; }; ippcryptoShim = import ./nix/ippcryptoshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; }; @@ -158,6 +159,7 @@ popd 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 ${commonLibs}/lib/* ${jniLibsPath} ''; diff --git a/nix/cryptoppshim.nix b/nix/cryptoppshim.nix new file mode 100644 index 0000000..1c3532c --- /dev/null +++ b/nix/cryptoppshim.nix @@ -0,0 +1,23 @@ +{ + pkgs + , cryptopp +}: +with pkgs; stdenv.mkDerivation { + name = "Crypto++ Shim"; + src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; + + buildInputs = [ + cryptopp + pkg-config + jdk11_headless + ]; + + buildPhase = '' + make cryptopp + ''; + + installPhase = '' + mkdir --parents $out/lib + cp cryptopp_provider.so $out/lib/ + ''; +} |
