aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorquapka2024-07-25 15:12:34 +0200
committerquapka2024-07-25 15:12:34 +0200
commitc36381570b1e4e2f0e16a95d0ccd7b69a6780b92 (patch)
tree6d9bce753fa4bef51cb0bb8ba2fe6fe54b48dff8 /flake.nix
parentc625e03c43a3089c42ec34ba272f25dff0733611 (diff)
downloadECTester-c36381570b1e4e2f0e16a95d0ccd7b69a6780b92.tar.gz
ECTester-c36381570b1e4e2f0e16a95d0ccd7b69a6780b92.tar.zst
ECTester-c36381570b1e4e2f0e16a95d0ccd7b69a6780b92.zip
Build OpenSSL shim through Nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 44fe3f6..3444be5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -121,6 +121,7 @@
tomcryptShim = import ./nix/tomcryptshim.nix { inherit pkgs libtomcrypt libtommath; };
botanShim = import ./nix/botanshim.nix { inherit pkgs; };
cryptoppShim = import ./nix/cryptoppshim.nix { inherit pkgs cryptopp; };
+ opensslShimBuilder = { version, hash }: import ./nix/opensslshim.nix { inherit pkgs; openssl = (openssl { version = version; hash = hash;}); };
mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; };
ippcryptoShim = import ./nix/ippcryptoshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; };
@@ -133,7 +134,7 @@
};
buildECTesterStandalone = { opensslVersion, opensslHash }: (
let
- opensslx = (openssl { version = opensslVersion; hash = opensslHash; });
+ opensslShim = (opensslShimBuilder { version = opensslVersion; hash = opensslHash; });
in
with pkgs;
gradle2nix.builders.${system}.buildGradlePackage rec {
@@ -160,6 +161,7 @@
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 ${commonLibs}/lib/* ${jniLibsPath}
'';
@@ -171,7 +173,6 @@
pkg-config
global-platform-pro
gradle
- opensslx
makeWrapper
# libraries to test
@@ -213,7 +214,6 @@
buildInputs = [
jdk17_headless
# libressl
- opensslx
commonLibs
];
@@ -224,7 +224,6 @@
cryptopp
libgcrypt
libgpg-error
- opensslx
# libressl
patched_boringssl
ninja
@@ -243,7 +242,6 @@
installPhase = ''
mkdir -p $out
cp -r standalone/build $out
- ls ${opensslx}/lib/* > $out/po
'';
postFixup = ''