aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix2
-rw-r--r--nix/ippcpshim.nix (renamed from nix/ippcryptoshim.nix)6
2 files changed, 5 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 3ea66cf..ae43bb1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -125,6 +125,7 @@
gcryptShim = import ./nix/gcryptshim.nix { inherit pkgs libgcrypt libgpg-error; };
mbedtlsShim = import ./nix/mbedtlsshim.nix { pkgs = pkgs; };
ippcryptoShim = import ./nix/ippcryptoshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; };
+ ippcpShim = import ./nix/ippcpshim.nix { pkgs = pkgs; ipp-crypto = customPkgs.ipp-crypto; };
overlays = [];
pkgs = import nixpkgs {
@@ -159,6 +160,7 @@
cp ${gcryptShim.out}/lib/gcrypt_provider.so ${jniLibsPath}
cp ${libresslShim.out}/lib/libressl_provider.so ${jniLibsPath}
cp ${mbedtlsShim.out}/lib/mbedtls_provider.so ${jniLibsPath}
+ cp ${ippcpShim.out}/lib/ippcp_provider.so ${jniLibsPath}
cp ${wolfcryptjni}/lib/* ${jniLibsPath}
cp ${commonLibs}/lib/* ${jniLibsPath}
'';
diff --git a/nix/ippcryptoshim.nix b/nix/ippcpshim.nix
index b8e06f1..43ec4d6 100644
--- a/nix/ippcryptoshim.nix
+++ b/nix/ippcpshim.nix
@@ -13,14 +13,14 @@
];
IPP_CRYPTO_HEADER = "${ipp-crypto.dev}/include";
- IPP_CRYPTO_LIB = "${ipp-crypto}/lib/"
+ IPP_CRYPTO_LIB = "${ipp-crypto}/lib/";
buildPhase = ''
- make ippcrypto
+ make ippcp
'';
installPhase = ''
mkdir --parents $out/lib
- cp mbedtls_provider.so $out/lib
+ cp ippcp_provider.so $out/lib
'';
}