2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-20 23:08:51 +00:00
|
|
|
pname = "cryptodev-linux-1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "${pname}-${kernel.version}";
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cryptodev-linux";
|
|
|
|
repo = "cryptodev-linux";
|
|
|
|
rev = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-vJQ10rG5FGbeEOqCUmH/pZ0P77kAW/MtUarywbtIyHw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
|
|
|
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
|
|
|
prefix = "\${out}";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Device that allows access to Linux kernel cryptographic drivers";
|
|
|
|
homepage = "http://cryptodev-linux.org/";
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ fortuneteller2k ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|