2021-01-15 06:45:37 -08:00
|
|
|
{ fetchFromGitHub, lib, stdenv, kernel ? false }:
|
2012-09-23 11:50:24 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-11 06:36:56 -07:00
|
|
|
pname = "cryptodev-linux-1.11";
|
2014-01-04 17:57:21 -08:00
|
|
|
name = "${pname}-${kernel.version}";
|
2012-09-23 11:50:24 -07:00
|
|
|
|
2020-09-11 06:36:56 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cryptodev-linux";
|
|
|
|
repo = "cryptodev-linux";
|
|
|
|
rev = pname;
|
|
|
|
sha256 = "1ky850qiyacq8p3lng7n3w6h3x2clqrz4lkv2cv3psy92mg9pvc9";
|
2012-09-23 11:50:24 -07:00
|
|
|
};
|
|
|
|
|
2016-08-13 07:24:38 -07:00
|
|
|
hardeningDisable = [ "pic" ];
|
2012-09-23 11:50:24 -07:00
|
|
|
|
2016-08-13 07:24:38 -07:00
|
|
|
KERNEL_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
INSTALL_MOD_PATH = "\${out}";
|
2017-07-23 08:02:42 -07:00
|
|
|
prefix = "\${out}";
|
2012-09-23 11:50:24 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Device that allows access to Linux kernel cryptographic drivers";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://cryptodev-linux.org/";
|
2021-01-15 06:45:37 -08:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2012-09-23 11:50:24 -07:00
|
|
|
};
|
|
|
|
}
|