diff options
| author | quapka | 2024-07-23 10:26:51 +0200 |
|---|---|---|
| committer | quapka | 2024-07-23 10:27:09 +0200 |
| commit | c867651a7f2c034ee1d48c2426fbad1a50ff956f (patch) | |
| tree | 800be5dcdbd5344f37f7b6bc821fe1b13685b580 /nix | |
| parent | 272a2b40619bb07d05c6ae5df9e6db839cb0404c (diff) | |
| download | ECTester-c867651a7f2c034ee1d48c2426fbad1a50ff956f.tar.gz ECTester-c867651a7f2c034ee1d48c2426fbad1a50ff956f.tar.zst ECTester-c867651a7f2c034ee1d48c2426fbad1a50ff956f.zip | |
Build IPP Crypto from package
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/ippcryptoshim.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nix/ippcryptoshim.nix b/nix/ippcryptoshim.nix new file mode 100644 index 0000000..b8e06f1 --- /dev/null +++ b/nix/ippcryptoshim.nix @@ -0,0 +1,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 ippcrypto + ''; + + installPhase = '' + mkdir --parents $out/lib + cp mbedtls_provider.so $out/lib + ''; +} |
