aboutsummaryrefslogtreecommitdiff
path: root/nix/nettleshim.nix
blob: b431a2a8bccc534a328952b5a4240748fbe46a1c (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
{
   pkgs
  , nettle
  , gmp
}:
with pkgs; stdenv.mkDerivation rec {
  name = "NettleShim";
  src = ../standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni;

  buildInputs = [
    nettle
    gmp
    pkg-config
    jdk11_headless
  ];

  buildPhase = ''
    make nettle
  '';

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