2024-01-13 08:15:51 +00:00
|
|
|
{ gcc11Stdenv
|
2021-12-19 01:06:50 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, nasm
|
2024-01-13 08:15:51 +00:00
|
|
|
, openssl
|
2021-12-19 01:06:50 +00:00
|
|
|
, python3
|
|
|
|
, extraCmakeFlags ? [ ]
|
|
|
|
}:
|
2023-03-04 12:14:45 +00:00
|
|
|
gcc11Stdenv.mkDerivation rec {
|
2021-12-19 01:06:50 +00:00
|
|
|
pname = "ipp-crypto";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2021.9.0";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "ipp-crypto";
|
|
|
|
rev = "ippcp_${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-+ITnxyrkDQp4xRa+PVzXdYsSkI5sMNwQGfGU+lFJ6co=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DARCH=intel64" ] ++ extraCmakeFlags;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
nasm
|
2024-01-13 08:15:51 +00:00
|
|
|
openssl
|
2021-12-19 01:06:50 +00:00
|
|
|
python3
|
|
|
|
];
|
|
|
|
}
|