aboutsummaryrefslogtreecommitdiff
path: root/nix/libresslshim.nix
diff options
context:
space:
mode:
authorJ08nY2024-08-19 21:02:16 +0200
committerJ08nY2024-08-19 21:02:16 +0200
commit5d991aed245974614437baec9903aee90c9d8879 (patch)
tree8ef54df9be9de3ed7a24763a28c189d75343bafd /nix/libresslshim.nix
parent2a9e5944bd3f444b4866bdf5830d444020799c18 (diff)
downloadECTester-5d991aed245974614437baec9903aee90c9d8879.tar.gz
ECTester-5d991aed245974614437baec9903aee90c9d8879.tar.zst
ECTester-5d991aed245974614437baec9903aee90c9d8879.zip
Diffstat (limited to 'nix/libresslshim.nix')
-rw-r--r--nix/libresslshim.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/nix/libresslshim.nix b/nix/libresslshim.nix
index 100e941..c6c8677 100644
--- a/nix/libresslshim.nix
+++ b/nix/libresslshim.nix
@@ -1,20 +1,25 @@
{ pkgs, libressl }:
with pkgs;
stdenv.mkDerivation rec {
- name = "LibreSSLShim";
+ name = "LibreSSLShim-${libressl.version}";
src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;
buildInputs = [
libressl
pkg-config
- jdk
+ pkgs.jdk_headless
];
buildPhase = ''
make libressl
'';
- LIBRESSL_CFLAGS = "-DECTESTER_LIBRESSL_${builtins.replaceStrings ["."] ["_"] libressl.version}=1";
+ LIBRESSL_CFLAGS = ''
+ -DECTESTER_LIBRESSL_${builtins.replaceStrings ["."] ["_"] libressl.version}=1 \
+ -DECTESTER_LIBRESSL_MAJOR=${pkgs.lib.versions.major libressl.version} \
+ -DECTESTER_LIBRESSL_MINOR=${pkgs.lib.versions.minor libressl.version} \
+ -DECTESTER_LIBRESSL_PATCH=${pkgs.lib.versions.patch libressl.version} \
+ '';
installPhase = ''
mkdir --parents $out/lib