aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorquapka2024-07-25 15:12:34 +0200
committerquapka2024-07-25 15:12:34 +0200
commitc36381570b1e4e2f0e16a95d0ccd7b69a6780b92 (patch)
tree6d9bce753fa4bef51cb0bb8ba2fe6fe54b48dff8 /nix
parentc625e03c43a3089c42ec34ba272f25dff0733611 (diff)
downloadECTester-c36381570b1e4e2f0e16a95d0ccd7b69a6780b92.tar.gz
ECTester-c36381570b1e4e2f0e16a95d0ccd7b69a6780b92.tar.zst
ECTester-c36381570b1e4e2f0e16a95d0ccd7b69a6780b92.zip
Build OpenSSL shim through Nix
Diffstat (limited to 'nix')
-rw-r--r--nix/opensslshim.nix23
1 files changed, 23 insertions, 0 deletions
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/
+ '';
+}