diff options
| author | quapka | 2024-07-25 15:23:51 +0200 |
|---|---|---|
| committer | quapka | 2024-07-25 15:23:51 +0200 |
| commit | 07bce9657c2975f11baaed7f920ccd7592c7efbd (patch) | |
| tree | 064b5f2a9573154e41ac50544da7da3bb3fdd7c8 | |
| parent | 7600a40601b9ab9d417b240188316b1c0e299e8b (diff) | |
| download | ECTester-07bce9657c2975f11baaed7f920ccd7592c7efbd.tar.gz ECTester-07bce9657c2975f11baaed7f920ccd7592c7efbd.tar.zst ECTester-07bce9657c2975f11baaed7f920ccd7592c7efbd.zip | |
| -rw-r--r-- | flake.nix | 3 | ||||
| -rw-r--r-- | nix/gcryptshim.nix | 25 |
2 files changed, 27 insertions, 1 deletions
@@ -122,6 +122,7 @@ cryptoppShim = import ./nix/cryptoppshim.nix { inherit pkgs cryptopp; }; opensslShimBuilder = { version, hash }: import ./nix/opensslshim.nix { inherit pkgs; openssl = (openssl { version = version; hash = hash;}); }; boringsslShim = import ./nix/boringsslshim.nix { inherit pkgs; boringssl = patched_boringssl; }; + gcryptShim = import ./nix/gcryptshim.nix { inherit pkgs libgcrypt libgpg-error; }; mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; }; ippcryptoShim = import ./nix/ippcryptoshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; }; @@ -150,12 +151,12 @@ jniLibsPath = "standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/"; preConfigure = '' - cp ${boringsslShim.out}/lib/boringssl_provider.so standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/ 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 ${commonLibs}/lib/* ${jniLibsPath} ''; diff --git a/nix/gcryptshim.nix b/nix/gcryptshim.nix new file mode 100644 index 0000000..bfe027b --- /dev/null +++ b/nix/gcryptshim.nix @@ -0,0 +1,25 @@ +{ + pkgs + , libgcrypt + , libgpg-error +}: +with pkgs; stdenv.mkDerivation { + name = "Gcrypt Shim"; + src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; + + buildInputs = [ + libgcrypt + libgpg-error + pkg-config + jdk11_headless + ]; + + buildPhase = '' + make gcrypt + ''; + + installPhase = '' + mkdir --parents $out/lib + cp gcrypt_provider.so $out/lib/ + ''; +} |
