blob: 33333ba198dd9f20b004a5b81467b472d26b33fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ pkgs, ipp-crypto }:
with pkgs;
stdenv.mkDerivation rec {
name = "IppCryptoShim-${ipp-crypto.version}";
src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;
buildInputs = [
ipp-crypto
pkg-config
pkgs.jdk_headless
];
IPP_CRYPTO_CFLAGS = "-I${ipp-crypto.dev}/include -DECTESTER_IPPCP_${ipp-crypto.version}=1";
IPP_CRYPTO_LFLAGS = "-L${ipp-crypto}/lib/";
buildPhase = ''
make ippcp
'';
installPhase = ''
mkdir --parents $out/lib
cp ippcp_provider.so $out/lib
'';
}
|