From c36381570b1e4e2f0e16a95d0ccd7b69a6780b92 Mon Sep 17 00:00:00 2001 From: quapka Date: Thu, 25 Jul 2024 15:12:34 +0200 Subject: Build OpenSSL shim through Nix --- nix/opensslshim.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nix/opensslshim.nix (limited to 'nix') diff --git a/nix/opensslshim.nix b/nix/opensslshim.nix new file mode 100644 index 0000000..6260b71 --- /dev/null +++ b/nix/opensslshim.nix @@ -0,0 +1,23 @@ +{ + pkgs + , openssl +}: +with pkgs; stdenv.mkDerivation { + name = "OpenSSL Shim"; + src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni; + + buildInputs = [ + openssl + pkg-config + jdk11_headless + ]; + + buildPhase = '' + make openssl + ''; + + installPhase = '' + mkdir --parents $out/lib + cp openssl_provider.so $out/lib/ + ''; +} -- cgit v1.3.1