2021-01-15 15:45:37 +01:00
|
|
|
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
|
2012-09-23 20:50:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-05-19 19:43:01 +02:00
|
|
|
pname = "cryptodev-linux-1.13";
|
2014-01-05 02:57:21 +01:00
|
|
|
name = "${pname}-${kernel.version}";
|
2012-09-23 20:50:24 +02:00
|
|
|
|
2020-09-11 15:36:56 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cryptodev-linux";
|
|
|
|
repo = "cryptodev-linux";
|
|
|
|
rev = pname;
|
2023-05-19 19:43:01 +02:00
|
|
|
hash = "sha256-EzTPoKYa+XWOAa/Dk7ru02JmlymHeXVX7RMmEoJ1OT0=";
|
2012-09-23 20:50:24 +02:00
|
|
|
};
|
|
|
|
|
2022-02-10 02:34:22 +01:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
2016-08-13 16:24:38 +02:00
|
|
|
hardeningDisable = [ "pic" ];
|
2012-09-23 20:50:24 +02:00
|
|
|
|
2023-01-20 06:43:19 +01:00
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
|
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
|
|
|
"INSTALL_MOD_PATH=$(out)"
|
|
|
|
"prefix=$(out)"
|
|
|
|
];
|
2012-09-23 20:50:24 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Device that allows access to Linux kernel cryptographic drivers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://cryptodev-linux.org/";
|
2023-11-17 11:03:27 +01:00
|
|
|
maintainers = with lib.maintainers; [ moni ];
|
2021-01-15 15:45:37 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2012-09-23 20:50:24 +02:00
|
|
|
};
|
|
|
|
}
|