diff options
Diffstat (limited to 'nix/libresslshim.nix')
| -rw-r--r-- | nix/libresslshim.nix | 11 |
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 |
