aboutsummaryrefslogtreecommitdiff
path: root/nix/ippcpshim.nix
blob: 43ec4d6919a29e7465e891c82410123168b84870 (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
25
26
{
  pkgs
  , ipp-crypto
}:
 with pkgs; stdenv.mkDerivation rec {
  name = "IppCryptoShim";
  src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;

  buildInputs = [
    ipp-crypto
    pkg-config
    jdk11_headless
  ];

  IPP_CRYPTO_HEADER = "${ipp-crypto.dev}/include";
  IPP_CRYPTO_LIB = "${ipp-crypto}/lib/";

  buildPhase = ''
    make ippcp
  '';

  installPhase = ''
    mkdir --parents $out/lib
    cp ippcp_provider.so $out/lib
  '';
}