4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
36 lines
694 B
Nix
36 lines
694 B
Nix
{ lib
|
|
, gcc11Stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, nasm
|
|
, openssl_1_1
|
|
, python3
|
|
, extraCmakeFlags ? [ ]
|
|
}:
|
|
|
|
gcc11Stdenv.mkDerivation rec {
|
|
pname = "ipp-crypto";
|
|
version = "2021.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "ipp-crypto";
|
|
rev = "ippcp_${version}";
|
|
hash = "sha256-QEJXvQ//zhQqibFxXwPMdS1MHewgyb24LRmkycVSGrM=";
|
|
};
|
|
|
|
# Fix typo: https://github.com/intel/ipp-crypto/pull/33
|
|
postPatch = ''
|
|
substituteInPlace sources/cmake/ippcp-gen-config.cmake \
|
|
--replace 'ippcpo-config.cmake' 'ippcp-config.cmake'
|
|
'';
|
|
|
|
cmakeFlags = [ "-DARCH=intel64" ] ++ extraCmakeFlags;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
nasm
|
|
openssl_1_1
|
|
python3
|
|
];
|
|
}
|