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