2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
pname = "cryptodev-linux-1.11";
|
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;
|
|
|
|
sha256 = "1ky850qiyacq8p3lng7n3w6h3x2clqrz4lkv2cv3psy92mg9pvc9";
|
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-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|